Energy-saving method applied to machine room, apparatus, and system

ABSTRACT

The present disclosure relates to energy-saving methods applied to a machine room. One example machine room includes a plurality of cabinets and at least one temperature regulating device, each cabinet includes at least one server, each server is configured to provide a computing resource, and each temperature regulating device is configured to regulate a temperature of the machine room. The machine room is further provided with a facility management device, and the facility management device is configured to manage the computing resource and the temperature regulating device that are in the machine room. One example method includes obtaining cooling capacity conduction relationship information of the machine room and computing resource status information of the machine room, and triggering, based on the cooling capacity conduction relationship information and the computing resource status information, the facility management device to execute a computing resource management instruction set.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2022/082480, filed on Mar. 23, 2022, which claims priority toChinese Patent Application No. 202110321118.4, filed on Mar. 25, 2021.The disclosures of the aforementioned applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

This application relates to the field of computer technologies, and inparticular, to an energy-saving method applied to a machine room, anapparatus, and a system.

BACKGROUND

A machine room usually stores a server and an air conditioner. Theserver provides an information technology (information technology, IT)service for a user, and the air conditioner is configured to control anair temperature of the machine room, so that the server and otherauxiliary apparatuses in the machine room can work within a propertemperature/humidity range.

Power consumption of the machine room includes IT power consumptiongenerated by the server and cooling power consumption generated by theair conditioner. Therefore, how to save the power consumption of themachine room is considered from the perspective of the two parts.Because a server system receives an external task (for example, avirtual machine creation task) in real time, and allocates the task toone of servers for execution according to a task scheduling algorithm,executing the task occupies a central processing unit (centralprocessing unit, CPU) resource of the server, and further increases anIT load. This increases the IT power consumption and the cooling powerconsumption. Therefore, how to formulate an appropriate task schedulingalgorithm is very important for saving the total power consumption ofthe machine room. In addition, an air conditioner system is responsiblefor processing heat generated by an IT system that is in the machineroom. Based on a relationship between power consumption and heat, theheat generated by the IT system is approximately equal to the IT powerconsumption. Therefore, when the air conditioner system meets a coolingcapacity requirement, how to dynamically regulate a setting temperatureand an air outlet volume based on the IT power consumption is criticalto saving the cooling power consumption of the machine room.

Currently, task schedule instructions and temperature setting parametersare generally determined by building prediction models. Specifically,data such as resource utilization of a server, an air conditioner systemparameter of the machine room, total power consumption of the machineroom, and an external environment parameter in a long period of time iscollected, and model training is performed based on the collected datato obtain a total power consumption prediction model and an airconditioner parameter prediction model. Total power consumption and airconditioner parameters that are generated by scheduling each task toservers are sequentially predicted based on the prediction models, sothat a server with minimum total power consumption may be selected as atarget server for executing each task, and a corresponding airconditioner parameter is a final setting parameter of the airconditioner. However, in this manner, a large amount of experimentaldata in various cases needs to be collected for training the models.Therefore, this manner highly depends on the sample data. However, it isdifficult for the sample data to meet complex and changeablerequirements during actual machine room running. How to reduce theoverall power consumption of the machine room is an urgent problem to beresolved by a person skilled in the art.

SUMMARY

This application provides an energy-saving method and a relatedapparatus used in a machine room, to minimize a total power of a machineroom while meeting a service requirement.

According to a first aspect, this application provides an energy-savingmethod applied to a machine room. The machine room includes a pluralityof cabinets and at least one temperature regulating device, each cabinetincludes at least one server, each server is configured to provide acomputing resource, and each temperature regulating device is configuredto regulate a temperature of the machine room. The machine room isfurther provided with a facility management device, and the facilitymanagement device is configured to manage the computing resource and thetemperature regulating device that are in the machine room. The methodincludes: obtaining cooling capacity conduction relationship informationof the machine room and computing resource status information of themachine room; and triggering, based on the cooling capacity conductionrelationship information and the computing resource status information,the facility management device to execute a computing resourcemanagement instruction set, so as to minimize a total power of themachine room while meeting a service requirement. The cooling capacityconduction relationship information is for determining a capability ofeach cabinet in the machine room to absorb a cooling capacity of eachtemperature regulating device in the machine room, and the computingresource status information is for determining a running location and arunning status that are of the computing resource included in themachine room. According to the method, the total power of the machineroom can be minimized while the service requirement is met.

With reference to the first aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceadjustment instruction set, and the computing resource adjustmentinstruction set is for adjusting a running location of at least onecomputing resource in the machine room.

With reference to the first aspect, in a possible implementation, thetriggering, based on the cooling capacity conduction relationshipinformation and the computing resource status information, the facilitymanagement device to execute a computing resource management instructionset includes: determining a to-be-migrated computing resource in themachine room based on the computing resource status information;determining a target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information, where a total power that isof the machine room and that is required after the to-be-migratedcomputing resource is migrated to the target server is less than a totalpower that is of the machine room and that is required before themigration; and generating, as the computing resource adjustmentinstruction set, an instruction set for migrating the to-be-migratedcomputing resource to the target server.

With reference to the first aspect, in a possible implementation, thedetermining a target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information includes: determining, for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of candidate servers and a candidate totalpower corresponding to each candidate server, where the candidate totalpower is a total power that is of the machine room and that is requiredif the to-be-migrated computing resource is migrated to each candidateserver; and selecting, from the plurality of candidate servers, acandidate server with a lowest corresponding candidate total power asthe target server. In a manner of selecting the candidate server withthe lowest corresponding candidate total power, the total power that isof the machine room and that is required after the migration may belower than the total power that is of the machine room and that isrequired before the migration.

With reference to the first aspect, in a possible implementation, thedetermining, for the to-be-migrated computing resource based on thecooling capacity conduction relationship information and the computingresource status information, a plurality of candidate servers and acandidate total power corresponding to each candidate server includes:determining partition cooling capacity absorption relationshipinformation and cooling capacity sharing relationship information basedon the cooling capacity conduction relationship information; determininga to-be-selected partition combination set based on the partitioncooling capacity absorption relationship information and the coolingcapacity sharing relationship information; and determining the pluralityof candidate servers and the candidate total power corresponding to eachcandidate server for the to-be-migrated computing resource based on thecooling capacity conduction relationship information, the to-be-selectedpartition combination set, and the computing resource statusinformation, where the plurality of candidate servers belong to theto-be-selected partition combination set, where the partition coolingcapacity absorption relationship information indicates a capability of acabinet in each partition in the machine room to absorb a coolingcapacity of a temperature regulating device in the partition, and onepartition includes one temperature regulating device and at least onecabinet; the cooling capacity sharing relationship information indicatesa capability of a cabinet in one partition to share a cooling capacityof a temperature regulating device in the other partition between everytwo partitions in the machine room; and the to-be-selected partitioncombination set includes a plurality of to-be-selected partitioncombinations having different partition quantities, where oneto-be-selected partition combination is a partition combination having astrongest cooling capacity absorption capability and a strongest coolingcapacity sharing capability in one or more partition combinations havinga same partition quantity.

With reference to the first aspect, in a possible implementation, thedetermining the plurality of candidate servers for the to-be-migratedcomputing resource based on the cooling capacity conduction relationshipinformation, the to-be-selected partition combination set, and thecomputing resource status information includes: determining, for theto-be-migrated computing resource based on the computing resource statusinformation, an alternate server in each cabinet in each to-be-selectedpartition combination in the to-be-selected partition combination set,where a first power variation is not greater than a second powervariation, the first power variation is a power variation that is of thealternate server and that is required if the to-be-migrated computingresource is migrated to the alternate server, and the second powervariation is a power variation that is of a server other than thealternate server in a same cabinet and that is required if theto-be-migrated computing resource is migrated to the server other thanthe alternate server; determining, based on the computing resourcestatus information and the cooling capacity conduction relationshipinformation, a power balance degree corresponding to each cabinet, wherethe power balance degree is a power balance degree that is of theto-be-selected partition combination to which each cabinet belongs andthat is required if the to-be-migrated computing resource is migrated tothe alternate server in each cabinet; and using an alternate server in acabinet with a minimum corresponding power balance degree in eachto-be-selected partition combination to form the plurality of candidateservers. A smaller power balance degree indicates more balanced powersbetween cabinets in the to-be-selected partition combination. In thisway, a temperature control power of the temperature regulating device islow. In addition, because the power variation corresponding to thealternate server is also small, when the to-be-migrated computingresource is migrated to these servers, a calculation power of theservers is reduced, so that the total power that is of the machine roomand that is required after the migration is less than the total powerthat is of the machine room and that is required before the migration.

With reference to the first aspect, in a possible implementation, themethod further includes: determining, based on one or more of a quantityof CPU cores of the to-be-migrated computing resource, CPU utilizationof the to-be-migrated computing resource, a quantity of CPU cores of thealternate server, or no load power consumption or full load powerconsumption of the alternate server, the power variation that is of thealternate server and that is required if the to-be-migrated computingresource is migrated to the alternate server.

With reference to the first aspect, in a possible implementation, themethod further includes: determining a normalized power of each cabinetbased on cooling capacity conduction relationship information betweeneach cabinet and a temperature regulating device of a partition in whicheach cabinet is located and a power that is of each cabinet and that isrequired if the to-be-migrated computing resource is migrated to thealternate server in each cabinet; and determining, based on thenormalized power of each cabinet, the power balance degree correspondingto each cabinet.

With reference to the first aspect, in a possible implementation, thequantity of CPU cores of the alternate server is not less than a sum ofthe quantity of CPU cores of the to-be-migrated computing resource and aquantity of CPU cores of an existing computing resource in the alternateserver; and/or a memory specification of the alternate server is notless than a sum of a memory specification of the to-be-migratedcomputing resource and a memory specification of the existing computingresource in the alternate server.

With reference to the first aspect, in a possible implementation, thedetermining a target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information includes: determining analternate server in each cabinet in the machine room for theto-be-migrated computing resource based on the computing resource statusinformation, where a first power variation is not greater than a secondpower variation, the first power variation is a power variation that isof the alternate server and that is required if the to-be-migratedcomputing resource is migrated to the alternate server, and the secondpower variation is a power variation that is of a server other than thealternate server in a same cabinet and that is required if theto-be-migrated computing resource is migrated to the server other thanthe alternate server; determining, based on the computing resourcestatus information and the cooling capacity conduction relationshipinformation, a power balance degree corresponding to each cabinet, wherethe power balance degree is a power balance degree that is of themachine room and that is required if the to-be-migrated computingresource is migrated to the alternate server in each cabinet; andselecting, as the target server, an alternate server in a cabinet with aminimum corresponding power balance degree in the plurality of cabinets.In this manner, the alternate server in each cabinet in the machine roommay be selected, and a plurality of alternate servers are servers withminimum corresponding power variations. In this way, assuming that theto-be-migrated computing resource is migrated to these servers, acalculation power of the servers is reduced. Further, the alternateserver in the cabinet with the minimum power balance degree in theplurality of cabinets is then selected as the target server, so that atemperature control power that is of the temperature regulating deviceand that is required if migration is performed may be reduced, so that atotal power that is of the machine room and that is required after themigration may be less than a total power that is of the machine room andthat is required before the migration.

With reference to the first aspect, in a possible implementation, themethod further includes: calculating a power that is of each of theplurality of cabinets and that is required if the computing resourceadjustment instruction set is executed; determining a temperaturesetting parameter of each of the at least one temperature regulatingdevice based on the power of each of the plurality of cabinets, wherethe temperature setting parameter is for meeting temperaturerequirements that are of the plurality of cabinets and that aregenerated after the computing resource adjustment instruction set isexecuted; and triggering the facility management device to execute atemperature regulation instruction set, where the temperature regulationinstruction set is generated based on the temperature setting parameter.In this manner, the temperature regulation instruction set of thetemperature regulating device may be determined based on the computingresource adjustment instruction set.

With reference to the first aspect, in a possible implementation, themethod further includes: calculating a power that is of each of theplurality of cabinets and that is required if the computing resourceadjustment instruction set is executed; determining a temperaturesetting parameter of each temperature regulating device based on a powerof a cabinet included in a partition in which each temperatureregulating device is located; and triggering the facility managementdevice to execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter.

With reference to the first aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceallocation instruction set, and the computing resource allocationinstruction set is for allocating at least one computing resource in themachine room.

With reference to the first aspect, in a possible implementation, thetriggering, based on the cooling capacity conduction relationshipinformation and the computing resource status information, the facilitymanagement device to execute a computing resource management instructionset includes: receiving a service requirement, where the servicerequirement is for requesting to run the computing resource in themachine room; determining, based on the service requirement, the coolingcapacity conduction relationship information, and the computing resourcestatus information, a target computing resource that meets the servicerequirement and a target server that provides the target computingresource, where an increment between total powers that are of themachine room and that are required before and after the target serverprovides the target computing resource is minimized; and generating, asthe computing resource allocation instruction set, an instruction setfor allocating the target computing resource by the target server.

With reference to the first aspect, in a possible implementation, thedetermining, based on the service requirement, the cooling capacityconduction relationship information, and the computing resource statusinformation, a target computing resource that meets the servicerequirement and a target server that provides the target computingresource includes: determining, for the target computing resource basedon the service requirement, the cooling capacity conduction relationshipinformation, and the computing resource status information, a pluralityof candidate servers and a candidate increment corresponding to eachcandidate server, where the candidate increment is an increment of atotal power that is of the machine room and that is required if thetarget computing resource is migrated to each candidate server; andselecting, from a set of the plurality of candidate servers, a candidateserver with a lowest corresponding candidate increment as the targetserver. In a manner of selecting the candidate server with the minimumcorresponding candidate increment, an increment between total powersthat are of the machine room and that are required before and after thecomputing resource allocation instruction set is executed can beminimized.

With reference to the first aspect, in a possible implementation, thedetermining, for the target computing resource based on the servicerequirement, the cooling capacity conduction relationship information,and the computing resource status information, a plurality of candidateservers and a candidate increment corresponding to each candidate serverincludes: determining partition cooling capacity absorption relationshipinformation and cooling capacity sharing relationship information basedon the cooling capacity conduction relationship information; determininga to-be-selected partition combination set based on the partitioncooling capacity absorption relationship information and the coolingcapacity sharing relationship information; and determining the pluralityof candidate servers and the candidate increment corresponding to eachcandidate server for the target computing resource based on the servicerequirement, the cooling capacity conduction relationship information,the to-be-selected partition combination set, and the computing resourcestatus information, where the plurality of candidate servers belong tothe to-be-selected partition combination set, where the partitioncooling capacity absorption relationship information indicates acapability of a cabinet in each partition in the machine room to absorba cooling capacity of a temperature regulating device in the partition,and one partition includes one temperature regulating device and atleast one cabinet; the cooling capacity sharing relationship informationindicates a capability of a cabinet in one partition to share a coolingcapacity of a temperature regulating device in the other partitionbetween every two partitions in the machine room; and the to-be-selectedpartition combination set includes a plurality of to-be-selectedpartition combinations having different partition quantities, where oneto-be-selected partition combination is a partition combination having astrongest cooling capacity absorption capability and a strongest coolingcapacity sharing capability in one or more partition combinations havinga same partition quantity.

With reference to the first aspect, in a possible implementation, thedetermining the plurality of candidate servers for the target computingresource based on the service requirement, the cooling capacityconduction relationship information, the to-be-selected partitioncombination set, and the computing resource status information includes:determining, for the target computing resource based on the servicerequirement and the computing resource status information, an alternateserver in each cabinet in each to-be-selected partition combination inthe to-be-selected partition combination set, where the alternate serverhas a capability of providing the target computing resource, and a thirdpower variation is not greater than a fourth power variation, where thethird power variation is a power variation that is of the alternateserver and that is required if the target computing resource is migratedto the alternate server, and the fourth power variation is a powervariation that is of a server other than the alternate server in a samecabinet and that is required if the target computing resource ismigrated to the server other than the alternate server; determining,based on the computing resource status information and the coolingcapacity conduction relationship information, a power balance degreecorresponding to each cabinet, where the power balance degree is a powerbalance degree that is of the to-be-selected partition combination towhich each cabinet belongs and that is required if the target computingresource is migrated to the alternate server in each cabinet; and usingan alternate server in a cabinet with a minimum corresponding powerbalance degree in each to-be-selected partition combination to form theplurality of candidate servers. A smaller power balance degree indicatesmore balanced powers between cabinets in the to-be-selected partitioncombination. In this way, a temperature control power of the temperatureregulating device is low. In addition, because the power variationcorresponding to the alternate server is also small, when the targetcomputing resource is allocated to these servers, an increment of acalculation power of the servers is small, so that the increment betweenthe total powers that are of the machine room and that are requiredbefore and after the computing resource allocation instruction set isexecuted can be minimized.

With reference to the first aspect, in a possible implementation, themethod further includes: determining, based on one or more of a quantityof CPU cores of the target computing resource, CPU utilization of thetarget computing resource, a quantity of CPU cores of the alternateserver, or no load power consumption or full load power consumption ofthe alternate server, the power variation that is of the alternateserver and that is required if the target computing resource is migratedto the alternate server.

With reference to the first aspect, in a possible implementation, themethod further includes: determining a normalized power of each cabinetbased on cooling capacity conduction relationship information betweeneach cabinet and a temperature regulating device of a partition in whicheach cabinet is located and a power that is of each cabinet and that isrequired if the target computing resource is migrated to the alternateserver in each cabinet; and determining, based on the normalized powerof each cabinet, the power balance degree corresponding to each cabinet.

With reference to the first aspect, in a possible implementation, thequantity of CPU cores of the alternate server is not less than a sum ofthe quantity of CPU cores of the target computing resource and aquantity of CPU cores of an existing computing resource in the alternateserver; and/or a memory specification of the alternate server is notless than a sum of a memory specification of the target computingresource and a memory specification of the existing computing resourcein the alternate server.

With reference to the first aspect, in a possible implementation, thetriggering, based on the cooling capacity conduction relationshipinformation and the computing resource status information, the facilitymanagement device to execute a computing resource management instructionset includes: determining, for the target computing resource based onthe computing resource status information, an alternate server in eachcabinet in the machine room, where the alternate server has a capabilityof providing the target computing resource, and a third power variationis not greater than a fourth power variation, where the third powervariation is a power variation that is of the alternate server and thatis required if the target computing resource is migrated to thealternate server, and the fourth power variation is a power variationthat is of a server other than the alternate server in a same cabinetand that is required if the target computing resource is migrated to theserver other than the alternate server; determining, based on thecomputing resource status information and the cooling capacityconduction relationship information, a power balance degreecorresponding to each cabinet, where the power balance degree is a powerbalance degree that is of the machine room and that is required if thetarget computing resource is migrated to the alternate server in eachcabinet; and selecting, as the target server, an alternate server in acabinet with a minimum corresponding power balance degree in theplurality of cabinets. In this manner, the alternate server in eachcabinet in the machine room may be selected, and a plurality ofalternate servers are servers with minimum corresponding powervariations. In this way, assuming that the target computing resource isallocated to these servers, an increment of a calculation power of theservers is small. Further, the alternate server in the cabinet with theminimum power balance degree in the plurality of cabinets is thenselected as the target server, so that an increment of a temperaturecontrol power that is of the temperature regulating device and that isrequired if migration is performed may be small, so that an increment ofa total power that is of the machine room and that is required after themigration may be small. With reference to the first aspect, in apossible implementation, the method further includes: obtaining a powerthat is of each of the plurality of cabinets and that is required if thecomputing resource allocation instruction set is executed; determining atemperature setting parameter of each of the at least one temperatureregulating device based on the power of each of the plurality ofcabinets, where the temperature setting parameter is for meetingtemperature requirements that are of the plurality of cabinets and thatare required after the computing resource allocation instruction set isexecuted; and triggering the facility management device to execute atemperature regulation instruction set generated based on thetemperature setting parameter.

With reference to the first aspect, in a possible implementation, themethod further includes: calculating a power that is of each of theplurality of cabinets and that is required if the computing resourceallocation instruction set is executed; determining a temperaturesetting parameter of each temperature regulating device based on a powerof a cabinet included in a partition in which each temperatureregulating device is located; and triggering the facility managementdevice to execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter.

With reference to the first aspect, in a possible implementation, thetotal power of the machine room includes a calculation power of theplurality of cabinets and a temperature control power of the at leastone temperature regulating device.

With reference to the first aspect, in a possible implementation, afirst cabinet is included in the plurality of cabinets, a firsttemperature regulating device is included in the at least onetemperature regulating device, and the method further includes:determining cooling capacity conduction relationship information betweenthe first cabinet and the first temperature regulating device based on afirst temperature, a second temperature, a first air inlet temperature,and a second air inlet temperature, where the first air inlettemperature is an air inlet temperature that is of the first cabinet andthat is obtained by simulating running of the machine room based on afirst setting model, the first setting model is constructed based on themachine room, and the first setting model includes the plurality ofcabinets of a first power and the at least one temperature regulatingdevice of the first temperature; and the second air inlet temperature isan air inlet temperature that is of the first cabinet and that isobtained by simulating running of the machine room based on a secondsetting model, the second setting model is constructed based on themachine room, and the second setting model includes the plurality ofcabinets of the first power, the first temperature regulating device ofthe second temperature, and a temperature regulating device other thanthe first temperature regulating device in the at least one temperatureregulating device of the first temperature.

With reference to the first aspect, in a possible implementation, themachine room includes a first partition, the first partition includes asecond temperature regulating device and at least one second cabinet,and the method further includes: determining partition cooling capacityabsorption relationship information of the first partition based on acapability of each of the at least one second cabinet to absorb acooling capacity of the second temperature regulating device.

With reference to the first aspect, in a possible implementation, themachine room includes a first partition and a second partition, thefirst partition includes a second temperature regulating device and atleast one second cabinet, and the second partition includes a thirdtemperature regulating device and at least one third cabinet; and themethod further includes: determining cooling capacity sharingrelationship information between the first partition and the secondpartition based on a capability of each of the at least one secondcabinet to absorb a cooling capacity of the third temperature regulatingdevice and a capability of each of the at least one third cabinet toabsorb a cooling capacity of the second temperature regulating device.

With reference to the first aspect, in a possible implementation, themachine room includes a first partition, and the first partitionincludes a second temperature regulating device and at least one secondcabinet; and a capability of each second cabinet to absorb a coolingcapacity of the second temperature regulating device is stronger than acapability of each second cabinet to absorb a cooling capacity of atemperature regulating device other than the second temperatureregulating device in the at least one temperature regulating device.

According to a second aspect, embodiments of this application provide anenergy-saving device. The energy-saving device is configured to savepower consumption of a machine room. The machine room includes aplurality of cabinets and at least one temperature regulating device,each cabinet includes at least one server, each server is configured toprovide a computing resource, and each temperature regulating device isconfigured to regulate a temperature of the machine room. The machineroom is further provided with a facility management device, and thefacility management device is configured to manage the computingresource and the temperature regulating device that are in the machineroom. The energy-saving device includes an obtaining unit and aprocessing unit. The obtaining unit is configured to obtain coolingcapacity conduction relationship information of the machine room andcomputing resource status information of the machine room. Theprocessing unit is configured to trigger, based on the cooling capacityconduction relationship information and the computing resource statusinformation, the facility management device to execute a computingresource management instruction set, so as to minimize a total power ofthe machine room while meeting a service requirement. The coolingcapacity conduction relationship information is for determining acapability of each cabinet in the machine room to absorb a coolingcapacity of each temperature regulating device in the machine room, andthe computing resource status information is for determining a runninglocation and a running status that are of the computing resourceincluded in the machine room.

With reference to the second aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceadjustment instruction set, and the computing resource adjustmentinstruction set is for adjusting a running location of at least onecomputing resource in the machine room.

With reference to the second aspect, in a possible implementation, theprocessing unit is specifically configured to: determine ato-be-migrated computing resource in the machine room based on thecomputing resource status information; determine a target server for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, where a total power that is of the machine room and that isrequired after the to-be-migrated computing resource is migrated to thetarget server is less than a total power that is of the machine room andthat is required before the migration; and generate, as the computingresource adjustment instruction set, an instruction set for migratingthe to-be-migrated computing resource to the target server.

With reference to the second aspect, in a possible implementation, theprocessing unit is specifically configured to: determine, for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of candidate servers and a candidate totalpower corresponding to each candidate server, where the candidate totalpower is a total power that is of the machine room and that is requiredif the to-be-migrated computing resource is migrated to each candidateserver; and select, from the plurality of candidate servers, a candidateserver with a lowest corresponding candidate total power as the targetserver.

With reference to the second aspect, in a possible implementation, theprocessing unit is further configured to: calculate a power that is ofeach of the plurality of cabinets and that is required if the computingresource adjustment instruction set is executed; determine a temperaturesetting parameter of each of the at least one temperature regulatingdevice based on the power of each of the plurality of cabinets, wherethe temperature setting parameter is for meeting temperaturerequirements that are of the plurality of cabinets and that aregenerated after the computing resource adjustment instruction set isexecuted; and trigger the facility management device to execute atemperature regulation instruction set, where the temperature regulationinstruction set is generated based on the temperature setting parameter.

With reference to the second aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceallocation instruction set, and the computing resource allocationinstruction set is for allocating at least one computing resource in themachine room.

With reference to the second aspect, in a possible implementation, theprocessing unit is specifically configured to: receive a servicerequirement, where the service requirement is for requesting to run thecomputing resource in the machine room; determine, based on the servicerequirement, the cooling capacity conduction relationship information,and the computing resource status information, a target computingresource that meets the service requirement and a target server thatprovides the target computing resource, where an increment between totalpowers that are of the machine room and that are required before andafter the target server provides the target computing resource isminimized; and generate, as the computing resource allocationinstruction set, an instruction set for allocating the target computingresource by the target server.

With reference to the second aspect, in a possible implementation, theprocessing unit is specifically configured to: determine, for the targetcomputing resource based on the service requirement, the coolingcapacity conduction relationship information, and the computing resourcestatus information, a plurality of candidate servers and a candidateincrement corresponding to each candidate server, where the candidateincrement is an increment of a total power that is of the machine roomand that is required if the target computing resource is migrated toeach candidate server; and select, from a set of the plurality ofcandidate servers, a candidate server with a lowest correspondingcandidate increment as the target server.

With reference to the second aspect, in a possible implementation, theprocessing unit is further configured to: obtain a power that is of eachof the plurality of cabinets and that is required if the computingresource allocation instruction set is executed; determine a temperaturesetting parameter of each of the at least one temperature regulatingdevice based on the power of each of the plurality of cabinets, wherethe temperature setting parameter is for meeting temperaturerequirements that are of the plurality of cabinets and that are requiredafter the computing resource allocation instruction set is executed; andtrigger the facility management device to execute a temperatureregulation instruction set, where the temperature regulation instructionset is generated based on the temperature setting parameter.

According to a third aspect, this application further provides anotherenergy-saving device. The energy-saving device is configured to savepower consumption of a machine room. The machine room includes aplurality of cabinets and at least one temperature regulating device,each cabinet includes at least one server, each server is configured toprovide a computing resource, and each temperature regulating device isconfigured to regulate a temperature of the machine room. The machineroom is further provided with a facility management device, and thefacility management device is configured to manage the computingresource and the temperature regulating device that are in the machineroom. The energy-saving device includes a processor and a memory, wherethe memory is configured to store program instructions, and theprocessor is configured to invoke the program instructions to performthe following operations: obtaining cooling capacity conductionrelationship information of the machine room and computing resourcestatus information of the machine room; triggering, based on the coolingcapacity conduction relationship information and the computing resourcestatus information, the facility management device to execute acomputing resource management instruction set, so as to minimize a totalpower of the machine room while meeting a service requirement. Thecooling capacity conduction relationship information is for determininga capability of each cabinet in the machine room to absorb a coolingcapacity of each temperature regulating device in the machine room, andthe computing resource status information is for determining a runninglocation and a running status that are of the computing resourceincluded in the machine room.

With reference to the third aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceadjustment instruction set, and the computing resource adjustmentinstruction set is for adjusting a running location of at least onecomputing resource in the machine room.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: determining ato-be-migrated computing resource in the machine room based on thecomputing resource status information; determining a target server forthe to-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, where a total power that is of the machine room and that isrequired after the to-be-migrated computing resource is migrated to thetarget server is less than a total power that is of the machine room andthat is required before the migration; and generating, as the computingresource adjustment instruction set, an instruction set for migratingthe to-be-migrated computing resource to the target server.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: determining, for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of candidate servers and a candidate totalpower corresponding to each candidate server, where the candidate totalpower is a total power that is of the machine room and that is requiredif the to-be-migrated computing resource is migrated to each candidateserver; and selecting, from the plurality of candidate servers, acandidate server with a lowest corresponding candidate total power asthe target server.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: obtaining a power that isof each of the plurality of cabinets and that is required if thecomputing resource adjustment instruction set is executed; determining atemperature setting parameter of each of the at least one temperatureregulating device based on the power of each of the plurality ofcabinets, where the temperature setting parameter is for meetingtemperature requirements that are of the plurality of cabinets and thatare generated after the computing resource adjustment instruction set isexecuted; and triggering the facility management device to execute atemperature regulation instruction set, where the temperature regulationinstruction set is generated based on the temperature setting parameter.

With reference to the third aspect, in a possible implementation, thecomputing resource management instruction set is a computing resourceallocation instruction set, and the computing resource allocationinstruction set is for allocating at least one computing resource in themachine room.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: receiving a servicerequirement, where the service requirement is for requesting to run thecomputing resource in the machine room; determining, based on theservice requirement, the cooling capacity conduction relationshipinformation, and the computing resource status information, a targetcomputing resource that meets the service requirement and a targetserver that provides the target computing resource, where an incrementbetween total powers that are of the machine room and that are requiredbefore and after the target server provides the target computingresource is minimized; and generating, as the computing resourceallocation instruction set, an instruction set for allocating the targetcomputing resource by the target server.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: determining, for thetarget computing resource based on the service requirement, the coolingcapacity conduction relationship information, and the computing resourcestatus information, a plurality of candidate servers and a candidateincrement corresponding to each candidate server, where the candidateincrement is an increment of a total power that is of the machine roomand that is required if the target computing resource is migrated toeach candidate server; and selecting, from a set of the plurality ofcandidate servers, a candidate server with a lowest correspondingcandidate increment as the target server.

With reference to the third aspect, in a possible implementation, theprocessor is configured to invoke the program instructions tospecifically perform the following operations: calculating a power thatis of each of the plurality of cabinets and that is required if thecomputing resource allocation instruction set is executed; determining atemperature setting parameter of each of the at least one temperatureregulating device based on the power of each of the plurality ofcabinets, where the temperature setting parameter is for meetingtemperature requirements that are of the plurality of cabinets and thatare required after the computing resource allocation instruction set isexecuted; and triggering the facility management device to execute atemperature regulation instruction set, where the temperature regulationinstruction set is generated based on the temperature setting parameter.

According to a fourth aspect, this application provides a computingresource supply system. The computing resource supply system includesthe energy-saving device and the machine room described in any one ofthe first aspect to the third aspect.

According to a fifth aspect, this application provides acomputer-readable storage medium. The computer-readable storage mediumis configured to store instructions. When the instructions are executed,the method according to any one of the first aspect to the third aspectis implemented.

According to a sixth aspect, this application provides a computerprogram or a computer program product, including a code or instructions.When the code or the instructions are run on a computer, the computer isenabled to perform the method according to any one of the first aspectto the third aspect.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in embodiments of this applicationor in a conventional technology more clearly, the following brieflydescribes the accompanying drawings for describing embodiments.

FIG. 1 is a schematic diagram of an architecture of a machine roomaccording to an embodiment of this application;

FIG. 2 is a schematic diagram of an architecture of a computing resourcesupply system according to an embodiment of this application;

FIG. 3 is a schematic diagram of an architecture of another computingresource supply system according to an embodiment of this application;

FIG. 4 is a schematic diagram of an architecture of still anothercomputing resource supply system according to an embodiment of thisapplication;

FIG. 5 is a schematic flowchart of an energy-saving method applied to amachine room according to an embodiment of this application;

FIG. 6 is a schematic diagram of a structure of an energy-saving deviceaccording to an embodiment of this application; and

FIG. 7 is a schematic diagram of a structure of another energy-savingdevice according to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following describes in detail technical solutions in embodiments ofthis application with reference to the accompanying drawings.

In the specification, the claims, and the accompanying drawings of thisapplication, the terms “first”, “second”, and the like are intended todistinguish between different objects but do not indicate a particularorder. In addition, the terms “including” and “having” and any othervariants thereof are intended to cover a non-exclusive inclusion. Forexample, a process, a method, a system, a product, or a device thatincludes a series of steps or units is not limited to the listed stepsor units, but optionally further includes an unlisted step or unit, oroptionally further includes another inherent step or unit of theprocess, the method, the product, or the device.

An “embodiment” mentioned in this specification means that a particularfeature, structure, or characteristic described with reference to thisembodiment may be included in at least one embodiment of thisapplication. The phrase shown in various locations in the specificationmay not necessarily refer to a same embodiment, and is not anindependent or alternative embodiment exclusive from another embodiment.It is explicitly and implicitly understood by a person skilled in theart that embodiments described in the specification may be combined withanother embodiment.

In this application, “at least one (item)” means one or more, “aplurality of” means two or more, “at least two (items)” means two,three, or more, and “and/or” is used to describe a correspondencerelationship between associated objects and indicates that threerelationships may exist. For example, “A and/or B” may indicate thefollowing three cases: Only A exists, only B exists, and both A and Bexist, where A and B may be singular or plural. The character “/”generally indicates an “or” relationship between the associated objects.“At least one of the following items (pieces)” or a similar expressionthereof refers to any combination of these items, including anycombination of singular items (pieces) or plural items (pieces). Forexample, at least one of a, b, or c may indicate a, b, c, a and b, a andc, b and c, or a, b, and c, where a, b, and c may be singular or plural.

The energy-saving method provided in embodiments of this application isapplied to a machine room. To better understand this solution, themachine room and related concepts are first described.

A data center (also called a resource center, computing resource center,or computing center) is a set of facilities that centrally provide aninformation technology (Internet technology, IT) service to the outside.The data center may include not only computer software and hardwaresystems and other auxiliary devices (such as communication and storagesystems) but also data communication connections, environment controldevices, monitoring devices, and various security apparatuses. From thespace perspective, the data center can be divided into a plurality ofmachine rooms (or referred to as machine libraries). From the logicperspective, the data center can be divided into three layers: a machineroom auxiliary layer, an infrastructure layer, and a software layer. Themachine room auxiliary layer includes a cooling device, a power supplydevice, a fire extinguishing system, and the like, and provides powerand a cooling source for the infrastructure layer. The infrastructurelayer includes a computing device, a storage device, and a virtualizedresource, and is used to carry a service application that is at thesoftware layer. The software layer includes a service application and acloud platform.

The following describes an impact of the foregoing three layers on atotal power of the data center.

The software layer (such as OpenStack) of the data center can receive atask (such as a virtual machine creation task) from the outside of thedata center in real time, place the task in a task queue for scheduling,and allocate, according to a task scheduling algorithm, the task to oneof servers for execution. Task execution occupies a CPU resource of theserver, and consequently increases an IT load, which increases IT powerconsumption and cooling power consumption. Therefore, how to allocate areceived new task or a new task generated by the data center affects thetotal power of the data center.

The infrastructure layer of the data center usually uses avirtualization technology to virtualize a physical server into aplurality of virtual machines and dynamically allocate the virtualmachines to users. A homing relationship between the server and thevirtual machine is adjusted, in other words, the virtual machine ismigrated from one physical server to another physical server (alsocalled virtual machine migration). This may re-allocate an IT load andaffects IT power consumption and cooling power consumption. Therefore,how to migrate the virtual machine for adjustment affects the totalpower of the data center. At the machine room auxiliary layer of thedata center, a cooling system is responsible for taking away heatgenerated by an IT system that is in the machine room. Based on arelationship between power consumption and heat, the heat generated bythe IT system is approximately equal to the IT power consumption.Therefore, when the cooling system meets a cooling capacity requirement,how to dynamically regulate a setting temperature and an air outletvolume of the cooling device based on the IT power consumption affectsthe total power of the data center.

The machine room is a basic unit of the data center in space. Themachine room includes a plurality of cabinets and at least onetemperature regulating device. Each cabinet includes at least oneserver, and each server is configured to provide a computing resource tomeet a service requirement (for example, a monitoring task or a securityprotection task) input by the outside or generated inside the machineroom. Each temperature regulating device is configured to regulate atemperature of the machine room, so that the server and anotherauxiliary apparatus in the machine room can work within a propertemperature/humidity range. The temperature of the machine room may beunderstood as an indoor temperature, an air temperature, or the like ofthe machine room. Specifically, in this embodiment of this application,each temperature regulating device is configured to regulate an airinlet temperature of the cabinet, so that the air inlet temperature ofthe cabinet is not greater than an air inlet temperature upper limit(for example, 28° C. or 27° C.) of the cabinet. The air inlettemperature upper limit of the cabinet may be determined based on anormal operating temperature requirement of the server or the anotherauxiliary apparatus placed in the cabinet. In this embodiment of thisapplication, the machine room is used as an application scenario todescribe an energy-saving method applied to the machine room.

FIG. 1 is a schematic diagram of an architecture of a machine roomaccording to an embodiment of this application. The machine room shownin FIG. 1 includes 16 cabinets (where at least one server may be placedin one cabinet), namely, L1 to L8 and R1 to R8, and four temperatureregulating devices (for example, air conditioners, temperature controlmachines, refrigerating machines, air-cooled devices, or water-cooleddevices), namely, A1 to A4.

Power consumption of the machine room includes IT power consumptiongenerated by the server and cooling power consumption (or heating powerconsumption in some environment conditions) generated by the temperatureregulating device. Therefore, how to save the power consumption of themachine room is considered from the perspective of the two parts.Because a server system receives an external task (for example, avirtual machine creation task) in real time, and allocates the task toone of servers for execution according to a task scheduling algorithm,executing the task occupies a central processing unit (centralprocessing unit, CPU) resource of the server, and further increases anIT load. This increases the IT power consumption and the cooling powerconsumption. Therefore, how to formulate an appropriate task schedulingalgorithm is very important for saving the total power consumption ofthe machine room. In addition, an air conditioner system is responsiblefor processing heat generated by an IT system that is in the machineroom. Based on a relationship between power consumption and heat, theheat generated by the IT system is approximately equal to the IT powerconsumption. Therefore, when the air conditioner system meets a coolingcapacity requirement, how to dynamically regulate a setting temperatureand an air outlet volume based on the IT power consumption is criticalto saving the cooling power consumption of the machine room.

Currently, task schedule instructions and temperature setting parametersare generally determined by building prediction models. Specifically,data such as resource utilization of a server, an air conditioner systemparameter of the machine room, total power consumption of the machineroom, and an external environment parameter in a long period of time iscollected, and model training is performed based on the collected datato obtain a total power consumption prediction model and an airconditioner parameter prediction model. Total power consumption and airconditioner parameters that are generated by scheduling each task toservers are sequentially predicted based on the prediction models, sothat a server with minimum total power consumption may be selected as atarget server for executing each task, and a corresponding airconditioner parameter is a final setting parameter of the airconditioner. However, in this manner, a large amount of experimentaldata in various cases needs to be collected for training the models.Therefore, this manner highly depends on the sample data. However, it isdifficult for the sample data to meet complex and changeablerequirements during actual machine room running.

In view of the problem existing in the existing situation describedabove, this application provides an energy-saving method applied to amachine room. The method can minimize a total power of the machine roomwhile meeting a service requirement.

FIG. 2 is a schematic diagram of an architecture of a computing resourcesupply system according to an embodiment of this application. Thecomputing resource supply system may include a simulation device, anenergy-saving device, a facility management device, and a machine room.

For ease of understanding, related terms in embodiments of thisapplication are first explained.

1. Cooling Capacity Conduction Relationship Information

The cooling capacity conduction relationship information is fordetermining a capability of each cabinet in the machine room to absorb acooling capacity of each temperature regulating device that is in themachine room. The cooling capacity herein specifically refers to acooling capacity conducted from the temperature regulating device to thecabinet, or a cooling capacity absorbed by the cabinet from thetemperature regulating device. Optionally, the cooling capacityconduction relationship information may also be referred to as heatconduction relationship information. The heat conduction relationshipinformation is for determining a capability of each temperatureregulating device in the machine room to absorb heat of each cabinetthat is in the machine room. The heat herein specifically refers to heatconducted from the cabinet to the temperature regulating device, or heatabsorbed by the temperature regulating device from the cabinet. It canbe noted that, if a function of the temperature regulating device isheating, the cooling capacity specifically refers to a cooling capacityconducted from the cabinet to the temperature regulating device, or acooling capacity absorbed by the temperature regulating device from thecabinet. The heat specifically refers to heat conducted from thetemperature regulating device to the cabinet, or heat absorbed by thecabinet from the temperature regulating device.

2. Computing Resource

The computing resource in embodiments of this application may include aserver, a virtual machine, a task, and the like that are in a machineroom. It may be understood that the server is a hardware device placedin a cabinet, and the virtual machine and the task are software unitsallocated to the server. It can be noted that in embodiments of thisapplication, at least one computing resource corresponding to acomputing resource management instruction set may be the virtual machineor the task. For example, the computing resource management instructionset may be for adjusting a running location of the virtual machine orthe task, or allocating (or referred to as creating) the virtual machineor the task in the server based on a service requirement.

3. Computing Resource Status Information

Computing resource status information is for determining a runninglocation and a running status that are of a computing resource includedin a machine room. It can be noted that, after an actual machine room iscreated, a running location (or referred to as location information orcoordinate information) of a server relative to a cabinet may bedetermined. For example, to record the running location of the server,each cabinet and each server may be numbered (or referred to as named ordenoted), and there is a correspondence between one number and one pieceof location information. For example, refer to FIG. 1 . The cabinet L1corresponds to the 1^(st) cabinet from top to bottom on the left side ofthe machine room. Alternatively, a coordinate system is created based onthe machine room, and coordinates of each cabinet and each server arerecorded. There is a correspondence between one coordinate and one pieceof location information. If a location of the server is moved manuallyor mechanically, the location information of the server is changed.Generally, the running location of the server is fixed. However, avirtual machine and a task are dynamically allocated to a user for usebased on a service requirement, and running locations of the virtualmachine and the task may be allocated and moved based on a computingresource management instruction.

For example, a running status of the server may be described by usingrunning data such as a quantity of central processing unit (centralprocessing unit, CPU) cores, a memory specification, no load powerconsumption, and full load power consumption that are of the server. Arunning status of the virtual machine may be described by using runningdata such as a quantity of CPU cores, a memory specification, CPUutilization, and memory utilization that are of the virtual machine. Arunning status of the task may be described by using data such as a CPUrequirement (namely, a quantity of required CPU cores) and a memoryrequirement required for running the task.

4. Computing Resource Management Instruction Set

A computing resource instruction set includes at least one adjustment orallocation instruction for a computing resource. In a possibleimplementation, the computing resource management instruction set may bea computing resource adjustment instruction set, and the computingresource adjustment instruction set is for adjusting a running locationof at least one computing resource that is in a machine room. In apossible implementation, the computing resource management instructionset may be a computing resource allocation instruction set, and thecomputing resource allocation instruction set is for allocating the atleast one computing resource in the machine room.

The following describes, one by one, composition components in a systemarchitecture to which embodiments of this application are applied.

A simulation device is an electronic device that uses a data centersimulation technology to simulate an air flow field and a temperaturefield that are of a machine room. For example, a control equation of anair flow is solved by using computational fluid dynamic software of adata center, where the air flow field and the temperature field that areof the machine room are simulated mainly by using a law of conservationof mass, a law of momentum change, a first law of thermodynamics, asecond law of thermodynamics, a Fourier heat transfer law, and the like.

The simulation device may construct, by using the computational fluiddynamic software based on location information of each compositionobject (a power supply assembly, a temperature regulating device, acabinet, a floor, a column, a pipe, and the like) in an actual machineroom, a machine room computational fluid dynamic model (which may alsobe referred to as a virtual machine room) corresponding to the machineroom. It can be noted that a cabinet layout, an air conditioner size andposition, a machine room height, a cable rack layout, a support beamposition, and a column position of the virtual machine room areconsistent with those of the actual machine room. After the machine roomcomputational fluid dynamic model is established, the model may be usedto simulate different cabinet power consumption and/or the temperaturefield and the air flow field that are of the machine room indistribution of setting parameters (or referred to as simulationparameters) of the temperature regulating device. In embodiments of thisapplication, the simulation device may construct, based on the locationinformation that is of the composition object and that is collected fromthe actual machine room, the virtual machine room corresponding to theactual machine room. Then, the virtual machine room is for obtaining airinlet temperatures of cabinets in distribution of setting parameters ofdifferent temperature regulating devices, so that an energy-savingdevice can calculate cooling capacity conduction relationshipinformation of the machine room. Optionally, the simulation device mayfurther receive the simulation parameter sent by the energy-savingdevice, simulate running of the machine room based on the simulationparameter and the machine room computational fluid dynamic model, andoutput a simulation result.

A facility management device is configured to manage a computingresource and a temperature regulating device that are in a machine room.Optionally, a shared facility management device (such as a data centerinfrastructure management (data center infrastructure management, DCIM)device) may be configured in a data center (including one or moremachine rooms). Optionally, each machine room is provided with afacility management device corresponding to the machine room, and theDCIM device may manage the facility management device of each machineroom. In this embodiment of this application, the facility managementdevice may collect computing resource status data of a temperatureregulating device, a cabinet, a server, a virtual machine, ato-be-scheduled task, and the like, to generate computing resourcestatus information; or may control a managed device, for example,regulate a setting parameter of the temperature regulating device,migrate the virtual machine, or schedule the task to a specified server.In addition, the facility management device may further provide a dataobtaining interface and a device control interface to the outside for anexternal system to obtain required data and control device. In thisembodiment of this application, the facility management device mayobtain the computing resource status information that is in an actualmachine room, and send the computing resource status information to anenergy-saving device. In addition, the facility management device mayfurther be triggered by the energy-saving device to execute a computingresource management instruction set.

An energy-saving device can interact with a facility management deviceand a simulation device through interfaces. For example, theenergy-saving device may collect computing resource status informationof a machine room through the interface with the facility managementdevice, and send a computing resource management instruction set to thefacility management device through the interface. The energy-savingdevice may further send a simulation parameter to the simulation devicethrough the interface with the simulation device, or collect asimulation result (for example, may be a plurality of pieces oftemperature data) obtained when the simulation device simulates runningof the machine room.

For the machine room, refer to the descriptions of the contentcorresponding to FIG. 1 . Details are not described herein again.

In embodiments of this application, first, the energy-saving device mayobtain, from the simulation device, the plurality of pieces oftemperature data obtained when the simulation device simulates runningof the machine room, and calculate cooling capacity conductionrelationship information of the machine room based on the pieces oftemperature data. In addition, the energy-saving device may obtain thecomputing resource status information of the machine room from thefacility management device. Then, the energy-saving device triggers,based on the cooling capacity conduction relationship information andthe computing resource status information, the facility managementdevice to execute the computing resource management instruction set, soas to minimize a total power of the machine room while meeting a servicerequirement. In some possible implementations, the energy-saving devicemay further determine a temperature setting parameter of eachtemperature regulating device based on a power that is of each of aplurality of cabinets in the machine room and that is required if thecomputing resource management instruction set is executed, and thentrigger the facility management device to execute a temperatureregulation instruction set generated based on the temperature settingparameter.

FIG. 3 is a schematic diagram of an architecture of another computingresource supply system according to an embodiment of this application.In this optional system architecture, the system includes a simulationdevice, a facility management device, and a machine room, and theforegoing energy-saving device is integrated in the facility managementdevice.

FIG. 4 is a schematic diagram of an architecture of still anothercomputing resource supply system according to an embodiment of thisapplication. In this optional system architecture, the system includes afacility management device and a machine room, and both the foregoingsimulation device and energy-saving device are integrated in thefacility management device.

The following describes in detail embodiments of this application.

FIG. 5 is a schematic flowchart of an energy-saving method applied to amachine room according to an embodiment of this application. The methodmay be applied to the computing resource supply system shown in FIG. 2(or FIG. 3 or FIG. 4 ). The energy-saving device described below may bethe energy-saving device shown in FIG. 2 . The machine room describedbelow may be the machine room shown in FIG. 1 or FIG. 2 (or FIG. 3 orFIG. 4 ). Optionally, in some other possible system architectures (forexample, in FIG. 3 or FIG. 4 ), the energy-saving device may beintegrated into a facility management device, and a device that performsthe following method may also be the facility management device. Themethod includes the following steps.

S101: The energy-saving device obtains cooling capacity conductionrelationship information of the machine room and computing resourcestatus information of the machine room.

For concepts of the cooling capacity conduction relationship informationand the computing resource status information, refer to the descriptionsin the foregoing content. Details are not described herein again.

Optionally, the energy-saving device may obtain the computing resourcestatus information of the machine room via the facility managementdevice.

For example, running location information that is of a server and thatis included in the computing resource status information may be asfollows:

 {   “cabinet1”: { // Cabinet cabinet1    “serverList”: [ // Threeservers named server1, server2, and server3 are placed in the cabinetcabinet1     “server1”,     “server2”,     “server3”    ]   },  “cabinet2”: {    “serverList”: [ // Two servers named server4 andserver5 are placed in the cabinet cabinet2     “server4”,     “server5”   ]   },   “cabinet3”: {    “serverList”: [// One server named server8is placed in the cabinet    cabinet3     “server8”    ]   }   }

For example, running location information that is of a virtual machineand that is included in the computing resource status information may beas follows:

 {   “server1”: { // Server server1    “vmList”: [ // Three virtualmachines named vm1, vm2, and vm3 are deployed on the server server1    “vm1”,     “vm2”,     “vm3”    ],   },   “server2”: {    “vmList”:[// No virtual machine is deployed on the server server2    ]   },  “server3”: {    “vmList”: [//One virtual machine named vm5 is deployedon the    server server3     “vm5”    ]   }  }

For example, the computing resource status information may furtherinclude running status information of the server: a quantity of CPUcores, a memory specification, no load power consumption, full loadpower consumption, and the like; and running status information of thevirtual machine: a quantity of CPU cores, a memory specification, CPUutilization, memory utilization, and the like.

Optionally, the energy-saving device may calculate the cooling capacityconduction relationship information of the machine room based on aplurality of pieces of temperature data obtained through collection whenthe simulation device simulates running of the machine room. A manner ofcalculating the cooling capacity conduction relationship information ofthe machine room is described by using cooling capacity conductionrelationship information between a first cabinet and a first temperatureregulating device as an example. The first cabinet is any cabinet in themachine room, and the first temperature regulating device is anytemperature regulating device in the machine room.

In some embodiments, the energy-saving device determines the coolingcapacity conduction relationship information between the first cabinetand the first temperature regulating device based on a firsttemperature, a second temperature, a first air inlet temperature, and asecond air inlet temperature, where the first air inlet temperature isan air inlet temperature that is of the first cabinet and that isobtained by simulating running of the machine room based on a firstsetting model, the first setting model is constructed based on themachine room, and the first setting model includes a plurality ofcabinets of a first power and at least one temperature regulating deviceof the first temperature; and the second air inlet temperature is an airinlet temperature that is of the first cabinet and that is obtained bysimulating running of the machine room based on a second setting model,the second setting model is constructed based on the machine room, andthe second setting model includes the plurality of cabinets of the firstpower, the first temperature regulating device of the secondtemperature, and a temperature regulating device other than the firsttemperature regulating device in the at least one temperature regulatingdevice of the first temperature.

The first power, the first temperature, and the second temperature maybe sent by the energy-saving device to the simulation device, so thatthe simulation device sets a running status, of the cabinet or thetemperature regulating device, in the first setting model and the secondsetting model based on the data. The first setting model and the secondsetting model may be understood as the machine room computational fluiddynamic models described in the foregoing content. The first settingmodel and the second setting model are constructed based on locationinformation of actual composition objects that are in the machine room.

For example, a request on the setting parameter (to be specific,including the first power and the first temperature) that is of thefirst setting model and that is sent by the energy-saving device to thesimulation device may be:

 SimulationRequest{   “CabinetPower”: { // Cabinet powers     “L1”: b,// A power of L1 is b KW (namely, the first power)     “L2”: b, // Apower of L2 is b KW     ... // Powers of other cabinets (it may beunderstood that the powers of the other cabinets are all set to thefirst power)    },   “CRACSetting”: { // Setting parameters of thetemperature regulating   device     “A1”: {      “switch”:1, // 1indicates that temperature regulating device A1 is turned on, and 0indicates that temperature regulating device A1 is turned off     “temp”:X // A setting temperature of temperature regulating deviceA1 is X°C (namely, the first temperature)     },     “A2”: {     “switch”:1,      “temp”:X     },     ... // Setting parameters ofother temperature regulating devices A3 and A4 (the other temperatureregulating devices are both turned on, and temperatures are both thefirst temperature)    }  }

For example, a request on the setting parameter (to be specific,including the first power, the first temperature, and the secondtemperature) that is of the second setting model and that is sent by theenergy-saving device to the simulation device may be:

 SimulationRequest{   “CabinetPower”: { // Cabinet powers that areconsistent with the cabinet powers in the first setting model     “L1”:b,     “L2”: b,     ...    },   “CRACSetting”: { // Setting parametersof the temperature regulating device, where a temperature of temperatureregulating device A1 (namely, the first temperature regulating device)is set to Y°C (namely, the second temperature), and temperatures ofother temperature regulating devices are all the first temperature    “A1”: {      “switch”:1,      “temp”:Y // A setting temperature ofthe temperature regulating device is Y°C     },     “A2”: {     “switch”:1,      “temp”:X     },     “A3”: {      “switch”:1,     “temp”:X     },     “A4”: {      “switch”:1,      “temp”:X     },   }  }

The simulation device obtains the first air inlet temperature of thefirst cabinet through simulating running of the machine room based onthe first setting model, and obtains the second air inlet temperature ofthe first cabinet through simulating running of the machine room basedon the second setting model.

For example, for a setting model, a result obtained through running bythe simulation device is as follows:

 SimulationResponse{   “Cabinet”: { // Cabinets     “L1”: {     “TempIn”: y1 // An air inlet temperature of the cabinet L1 is y1 },     “L2”: { “TempIn”: y2 // An air inlet temperature of the cabinetL2 is y2  },     ... // Air inlet temperatures of other cabinets    },  “CRAC”: { // Temperature regulating devices     “A1”: {//Temperatureregulating device 1      “TempIn”:x1, // An air inlet temperature oftemperature regulating device A1 is x1      “TempOut”:x2 // An airoutlet temperature of temperature regulating device A1 is x2     “Flow”:x3 // An air flow of temperature regulating device A1 is x3,and a unit is m³/s     },     “A2”: {//Temperature regulating device 2     “TempIn”:x4,      “TempOut”:x5,      “Flow”:x6     },     ... //Air inlet temperatures, air outlet temperatures, and air flows of othertemperature regulating devices A3 and A4   }  }

The energy-saving device may obtain the first air inlet temperature andthe second air inlet temperature from the simulation device. It can benoted that, a difference between the first setting model and the secondsetting model lies only in that the temperature of the first temperatureregulating device is adjusted, and a temperature of another temperatureregulating device and a power of each cabinet remain unchanged. This maybe understood as that an impact of another factor on the air inlettemperature of the first cabinet is limited. In this manner, the coolingcapacity conduction relationship information between the first cabinetand the first temperature regulating device may be determined.

In a possible implementation, in this embodiment of this application, atemperature correlation index (temperature correlation index, TCI) isused to describe a capability of a cabinet to absorb a cooling capacityof a temperature regulating device. For example, a larger valueindicates a stronger capability of a cabinet to absorb a coolingcapacity of a temperature regulating device, in other words, may alsoindicate a stronger correlation between the cabinet and the temperatureregulating device.

Optionally, for a manner of calculating a TCI between the first cabinetand the first temperature regulating device, refer to Formula 1-1:

$\begin{matrix}{{TCI}_{11} = \frac{T_{1}^{j} - T_{1}^{0}}{Y - X}} & {{Formula}1 - 1}\end{matrix}$

T₁ ^(j) is the second air inlet temperature, T₁ ⁰ is the first air inlettemperature, Y is the second temperature, and X is the firsttemperature. The cooling capacity conduction relationship informationbetween the first cabinet and the first temperature regulating devicemay be an association relationship between the first cabinet, the firsttemperature regulating device, and TCI₁₁. Cooling capacity conductionrelationship information between another cabinet and another temperatureregulating device may be calculated in a similar manner described above.

Table 1 records partial cooling capacity conduction relationshipinformation that is in the machine room.

TABLE 1 A1 A2 A3 A4 L1 0.64 0.08 0.33 0.07 L2 0.72 0.08 0.28 0.06 L30.75 0.11 0.31 0.08 L4 0.76 0.13 0.29 0.09 R1 0.31 0.07 0.66 0.07 R20.24 0.06 0.78 0.08 R3 0.24 0.09 0.78 0.09 R4 0.27 0.1 0.74 0.11 . . . .. . . . . . . . . . .

The row identifiers “L1”, “L2”, “R1”, and “R2” indicate identifiers (orlabels or numbers) of cabinets. The identifiers correspond to locationinformation of the cabinets. For example, L1 indicates the first cabineton the left in FIG. 1 that is a schematic diagram of a machine room, andR2 indicates the second cabinet on the right in FIG. 1 that is theschematic diagram of the machine room. The column identifiers “A1”,“A2”, “A3”, and “A4” indicate identifiers of temperature regulatingdevices, and the identifiers correspond to location information of thetemperature regulating devices. For example, A1 indicates the first airconditioner on the left in FIG. 1 that is the schematic diagram of themachine room. A value of each unit represents a value of a TCI between acorresponding cabinet and a corresponding temperature regulating device.For example, when the row identifier is L1 and the column identifier isA1, the value of the TCI is 0.64, indicating that the value of the TCIbetween the cabinet L1 and temperature regulating device A1 is 0.64, andthe value represents a capability of the cabinet L1 to absorb a coolingcapacity of temperature regulating device A1.

Optionally, in a possible implementation, a homing relationship (orreferred to as a strong association relationship) between a cabinet anda temperature regulating device may be determined based on the coolingcapacity conduction relationship information. For example, for thecabinet L1, if a TCI between the cabinet L1 and temperature regulatingdevice A1 is greater than a TCI between the cabinet L1 and anothertemperature regulating device, this may be considered as that there is ahoming relationship between the cabinet L1 and temperature regulatingdevice A1, to be specific, the cabinet L1 is a cabinet belonging totemperature regulating device A1, and temperature regulating device A1is a home temperature regulating device of the cabinet L1.

S102: The energy-saving device triggers, based on the cooling capacityconduction relationship information and the computing resource statusinformation, the facility management device to execute a computingresource management instruction set, so as to minimize a total power ofthe machine room while meeting a service requirement.

The total power of the machine room includes a calculation power (whichmay also be referred to as an IT power or the like) of the plurality ofcabinets in the machine room and a temperature control power (which mayalso be referred to as a cooling power, a heating power, or the like) ofthe at least one temperature regulating device in the machine room. Itcan be noted that minimizing the total power of the machine room meansthat the total power that is of the machine room and that is requiredwhen the computing resource management instruction set is executed isless than a total power that is of the machine room and that is requiredwhen another management instruction set is executed. In someembodiments, the computing resource management instruction set is acomputing resource adjustment instruction set, and the computingresource adjustment instruction set is for adjusting a running locationof at least one computing resource in the machine room. It may beunderstood that the at least one computing resource may be a virtualmachine or a task. The computing resource adjustment instruction set mayinclude one or more adjustment instructions for the computing resource.After executing the computing resource adjustment instruction set, thefacility management device may adjust the running location of the atleast one computing resource, so that an IT load can be reallocated, andthis affects a calculation power and a temperature control power. Inthis embodiment of this application, the total power that is of themachine room and that is required when the computing resource adjustmentinstruction set is executed is less than a total power that is of themachine room and that is required before the execution.

Optionally, a process in which the energy-saving device triggers, basedon the cooling capacity conduction relationship information and thecomputing resource status information, the facility management device toexecute the computing resource management instruction set may includethe following steps.

S11: Determine a to-be-migrated computing resource in the machine roombased on the computing resource status information.

In some application scenarios, the machine room may periodically updatea running location of a virtual machine and/or a task. In this case, allvirtual machines and/or tasks included in the machine room may be usedas to-be-migrated computing resources.

In some application scenarios, each virtual machine or task has aspecified update periodicity. Optionally, update periodicities set fordifferent virtual machines or tasks may be the same, or may bedifferent. When update periodicities of some virtual machines or tasksare reached at a current moment, the virtual machines or tasks may beused as to-be-migrated computing resources.

In some application scenarios, for a service requirement (which may be aservice requirement from an outside of the machine room, or may be aservice requirement generated by the machine room) newly obtained by themachine room, the machine room may first allocate temporary computingresources for the service requirement, so as to respond to the servicerequirement in a timely manner, and then adjust the temporary computingresources after a specific time period. In this case, these temporarycomputing resources may be used as to-be-migrated computing resources.For example, the service requirement in this scenario may be an onlineservice. This type of service is a delay-sensitive service, and has ahigh requirement on a response speed of the service. For example, areal-time service oriented to a terminal user is an online service. Forexample, the service requirement may be an e-commerce service, a searchservice, a recommendation service, or the like.

S12: Determine a target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information.

Specifically, a total power that is of the machine room and that isrequired after the to-be-migrated computing resource is migrated to thetarget server is less than a total power that is of the machine room andthat is required before the migration. In some embodiments, a manner ofdetermining the target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information may be: determining, for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of candidate servers and a candidate totalpower corresponding to each candidate server, where the candidate totalpower is a total power that is of the machine room and that is requiredif the to-be-migrated computing resource is migrated to each candidateserver; and selecting, from the plurality of candidate servers, acandidate server with a lowest corresponding candidate total power asthe target server.

The following describes some methods for determining the candidateserver.

In a first possible implementation, to enable the to-be-migratedcomputing resource to run normally in the target server, it is requiredthat a quantity of CPU cores of the candidate server is not less than asum of a quantity of CPU cores of the to-be-migrated computing resourceand a quantity of CPU cores of an existing computing resource in thecandidate server; and/or a memory specification of the candidate serveris not less than a sum of a memory specification of the to-be-migratedcomputing resource and a memory specification of the existing computingresource in the candidate server. Optionally, a further requirement maybe further imposed on the candidate server based on a service feature ofthe to-be-migrated computing resource. For example, if theto-be-migrated computing resource is an authentication task, thecandidate server needs to have an authentication function. It can benoted that some other requirements may be further added to the candidateserver. This is not specifically limited in this embodiment of thisapplication. In this implementation, a server that meets a runningrequirement of the to-be-migrated computing resource and that is in themachine room may be used as the candidate server.

In a second possible implementation, the energy-saving device may firstselect, as an alternate server from a plurality of servers in themachine room, a server that meets a running requirement (referring todescriptions of the first possible implementation) of the to-be-migratedcomputing resource; and then determine, based on the computing resourcestatus information, a power variation corresponding to each alternateserver, where the power variation is a power variation that is of eachalternate server and that is required if the to-be-migrated computingresource is migrated to each alternate server. An alternate server witha minimum corresponding power variation in each cabinet form theplurality of candidate servers. In this manner, the plurality ofcandidate servers are servers with minimum corresponding powervariations. In this case, when the to-be-migrated computing resource ismigrated to these servers, a calculation power of the servers isreduced, so that the total power that is of the machine room and that isrequired after the migration is less than the total power that is of themachine room and that is required before the migration.

Optionally, the method further includes: determining, based on one ormore of a quantity of CPU cores of the to-be-migrated computingresource, CPU utilization of the to-be-migrated computing resource, aquantity of CPU cores of the alternate server, or no load powerconsumption or full load power consumption of the alternate server, thepower variation that is of the alternate server and that is required ifthe to-be-migrated computing resource is migrated to the alternateserver.

For example, a calculation manner of power variation AP required whenvirtual machine j is placed in server k is described.

If there is no virtual machine on server k before the assumed migration:

$\begin{matrix}{{\Delta P} = {P_{idle}^{k} + {\frac{V_{{cpu} - s}^{j}*V_{{cpu} - u}^{j}}{S_{{cpu} - s}^{k}}*\left( {P_{full}^{k} - P_{idle}^{k}} \right)}}} & {{Formula}1 - 2}\end{matrix}$

If server k includes a virtual machine before the assumed migration,

$\begin{matrix}{{\Delta P} = {\frac{V_{{cpu} - s}^{j}*V_{{cpu} - u}^{j}}{S_{{cpu} - s}^{k}}*\left( {P_{full}^{k} - P_{idle}^{k}} \right)}} & {{Formula}1 - 3}\end{matrix}$

V_(cpu-s) ^(j) represents a quantity of CPU cores of virtual machine j,V_(cpu-u) ^(j) represents CPU utilization of virtual machine j,S_(cpu-s) ^(k) represents a quantity of CPU cores of server k, P_(idle)^(k) is no load power consumption of server k, and P_(full) ^(k) is fullload power consumption of server k. Such data may be obtained from thecomputing resource status information.

A calculation manner of power variation ΔP required when virtual machinecreation task l is placed in server k is described.

If there is no virtual machine or virtual machine creation task on theserver before the assumed migration,

$\begin{matrix}{{\Delta P} = {P_{idle}^{k} + {\frac{T_{cpu}^{l}}{S_{{cpu} - s}^{k}}*\left( {P_{full}^{k} - P_{idle}^{k}} \right)}}} & {{Formula}1 - 4}\end{matrix}$

If there is the virtual machine or virtual machine creation task on theserver before the assumed migration,

$\begin{matrix}{{\Delta P} = {\frac{T_{cpu}^{l}}{S_{cpu}^{k}}*\left( {P_{full}^{k} - P_{idle}^{k}} \right)}} & {{Formula}1 - 5}\end{matrix}$

T_(cpu) ^(l) represents a CPU requirement of the task l, S_(cpu-s) ^(k)represents a quantity of CPU cores of server k, P_(idle) ^(k) is no loadpower consumption of server k, and P_(full) ^(k) is full load powerconsumption of server k. Such data may be obtained from the computingresource status information.

It can be noted that there may be another manner of calculating thepower variation. Details are not described in this embodiment of thisapplication.

In a third possible implementation, the energy-saving device may firstselect, as an alternate server from a plurality of servers in themachine room, a server that meets a running requirement (referring tothe descriptions of the first possible implementation) of theto-be-migrated computing resource. Then, based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of alternative cabinets that are in the machineroom and that have a largest TCI with each temperature regulating deviceare determined (where for example, in Table 1, a cabinet having alargest TCI with temperature regulating device A1 is cabinet L4), andalternate servers located in the plurality of alternative cabinets areused as the plurality of candidate servers. In this manner, theplurality of candidate servers have the largest TCIs with thetemperature regulating device, indicating that cooling capacityabsorption capabilities of the candidate servers are stronger. In thiscase, when the to-be-migrated computing resource is migrated to theseservers, a temperature control power of the temperature regulatingdevice is reduced, so that the total power that is of the machine roomand that is required after the migration is less than the total powerthat is of the machine room and that is required before the migration.

It can be noted that the to-be-migrated computing resource may include aplurality of computing resources, and one target server may bedetermined for each to-be-migrated computing resource. Target servers ofdifferent to-be-migrated computing resources may be the same or may bedifferent. A computing resource instruction for migrating eachto-be-migrated computing resource to the target server corresponding tothe to-be-migrated computing resource forms the computing resourceadjustment instruction set.

Optionally, the target servers may be sequentially determined for theto-be-migrated computing resources in descending order of CPUutilization of the to-be-migrated computing resources. Because theto-be-migrated computing resource with high CPU utilization occupies ahigh power, in this manner, the to-be-migrated computing resource thathas a large impact on the total power of the machine room may be firstmigrated, and this helps reduce the total power of the machine room.

In addition, it can be noted that, after a target server correspondingto a to-be-migrated computing resource is determined, running statusinformation of the target server needs to be updated, and the reason isthat the target server needs to reserve computing resources for theto-be-migrated computing resource. In other words, in a process ofselecting a target server corresponding to a next to-be-migratedcomputing resource, computing resource status information updated basedon a selection result of a current to-be-selected computing resource isused.

For example, it is assumed that virtual machine 1 is on server1 beforemigration, and is on server2 after the migration. It is assumed that achange of data structures (or referred to as running locationinformation) of a homing relationship between a server and a virtualmachine before and after the migration is as follows:

{ // Before migration  “server1”: { // Server 1   “vmList”: [    “vm1”,// Virtual machine 1 is on server1    “vm2”,    “vm3”   ]  }, “server2”: {   “vmList”: [   ]  },  “server3”: {   “vmList”: [    “vm5”  ]  } } { // After migration  “server1”: { // Server1, no longerincluding virtual machine 1   “vmList”: [    “vm2”,    “vm3”   ]  }, “server2”: { // Server2   “vmList”: [     “vm1”, // Virtual machine 1has been migrated from server1 to     server2   ]  },  “server3”: {  “vmList”: [    “vm5”   ]  } }

The following describes a manner of determining the total candidatepower corresponding to each candidate server. The method may include thefollowing steps.

Step a1: Obtain a power that is of each of the plurality of cabinets andthat is required if the to-be-migrated computing resource is migrated toone candidate server.

Optionally, CPU utilization S_(cpu-u) that is of each server and that isrequired if the migration is performed is first calculated.

CPU utilization of a server is obtained by dividing, by a quantity ofCPU cores of the server, a result of a sum of CPU loads of all virtualmachines on the server plus a sum of CPU requirements for virtualmachine creation tasks on the server. A quantity of CPU cores of thevirtual machine multiplied by CPU utilization of the virtual machineequals the CPU load of the virtual machine. S_(cpu-u) ^(k) indicates CPUutilization of server k.

Then, a power P_(server) of each server is calculated.

If the server includes a virtual machine, P_(server) ^(k)=P_(idle)^(k)+S_(cpu-u) ^(k)*(P_(full) ^(k)−P_(idle) ^(k)). P_(server) ^(k)indicates a power of server k, P_(full) ^(k) is the full load powerconsumption of server k, and P_(idle) ^(k) is the no load powerconsumption of server k. The power of the server is linearly related tothe CPU utilization of the server.

If there is no virtual machine on the server, P_(server) ^(k)=0,indicating that a power of server k is 0.

Then, a power P_(rack) of each cabinet is calculated. The cabinet poweris equal to a sum of powers of all servers in the cabinet. P_(rack) ^(i)indicates a power of an i^(th) cabinet.

Step b1: Determine the calculation power of the plurality of cabinetsbased on the power of each cabinet. Specifically, the calculation powerof the plurality of cabinets is a sum of powers of all the cabinets.

Step c1: Determine a temperature setting parameter of each of the atleast one temperature regulating device based on the power of each ofthe plurality of cabinets, where the temperature setting parameter isfor meeting temperature requirements that are of the plurality ofcabinets and that are required after the to-be-migrated computingresource is migrated to one candidate server.

For a manner of determining the temperature setting parameter of eachtemperature regulating device, refer to the following descriptions.

First, the energy-saving device sends the power (obtained throughcalculation in step S21) of each cabinet and a simulated temperaturevalue of the temperature regulating device (initially, a running statusof each temperature regulating device is on, and an initial temperatureis a settable maximum temperature Z° C. (for example, 35° C.)) to asimulation device as input parameters, so that the simulation devicesimulates running of the machine room based on the input parameters. Itcan be noted that, if powers of all cabinets of a temperature regulatingdevice that serves as a home temperature regulating device are all 0, arunning status of the temperature regulating device may be set to off.

Then, an air inlet temperature T_(i) of each cabinet, an air inlettemperature T_(j) ^(in) of each air conditioner, an air outlettemperature T_(j) ^(out) of each air conditioner, and an air flow M_(j)of each air conditioner are obtained from the simulation device. T_(i)indicates an air inlet temperature of an i^(th) cabinet, T_(j) ^(in)indicates an air inlet temperature of a j^(th) air conditioner, T_(j)^(out) indicates an air outlet temperature of the j^(th) airconditioner, and M_(j) indicates an air flow of the j^(th) airconditioner.

For example, a request on the input parameters sent by the energy-savingdevice to the simulation device may be:

SimulationRequest{  “CabinetPower”: { // Cabinet powers    “L1”: x1, //A power of L1 is x1    “L2”: x2, // A power of L2 is x2    ... // Powersof other cabinets   },  “CRACSetting”: { // Simulated temperature values   “A1”: {     “switch”:1, // Air conditioner A1 is turned on    “temp”:y1 // A temperature of air conditioner A1 is set to      y1°C   },    “A2”: {     “switch”:0 // Air conditioner A2 is turned off   },    ... // Setting parameters of other air conditioners A3 and A4  } }

For example, an output result obtained by the simulation device bysimulating running of the machine room based on the input parameters maybe:

 SimulationResponse{   “Cabinet”: { // Cabinets    “L1”: {      “TempIn”: y1 // An air inlet temperature of cabinet L1       is y1 },     “L2”: {       “TempIn”: y2 // An air inlet temperature ofcabinet L2       is y2  },     ... // Air inlet temperatures of othercabinets    },   “CRAC”: { // Air conditioners     “A1”: {//Airconditioner 1      “TempIn”:x1, // An air inlet temperature of air     conditioner A1 is x1      “TempOut”:x2 // An air outlet temperatureof air      conditioner A1 is x2      “Flow”:x3 // An air flow of airconditioner A1 is x3, and      a unit is m{circumflex over ( )}3/s    },     “A2”:{//Air conditioner 2      “TempIn”:x4,     “TempOut”:x5,      “Flow”:x6     },     ... // Air inlettemperatures, air outlet temperatures, and air flows of other airconditioners A3 and A4   }  }

If cabinet T_(i)>an air inlet temperature upper limit of the cabinet,where the air inlet temperature upper limit of the cabinet is W° C. (forexample, 28° C.), a simulated temperature value of a temperatureregulating device having a maximum TCI with the cabinet is decreased bya preset value (for example, 1° C.), and then an air inlet temperatureof each cabinet is obtained again based on a decreased simulatedtemperature value. The foregoing process repeats until each cabinetT_(i)≤an air inlet temperature upper limit of the cabinet. Acorresponding simulated temperature value of each temperature regulatingdevice is determined as a temperature setting parameter of eachtemperature regulating device when each cabinet T_(i)≤the air inlettemperature upper limit of the cabinet.

If each cabinet T_(i)≤the air inlet temperature upper limit of thecabinet, the simulated temperature value of each temperature regulatingdevice is determined as the temperature setting parameter of eachtemperature regulating device.

Step d1: Calculate a power of each temperature regulating device basedon the air inlet temperature and the air outlet temperature (which maybe obtained from step c1) that are of each temperature regulating deviceand that correspond to the temperature setting parameter of eachtemperature regulating device.

For example, a power of a temperature regulating device is:

$\begin{matrix}{P_{crac}^{j} = \frac{C*M_{j}*\left( {T_{j}^{in} - T_{j}^{out}} \right)}{{cop}\left( T_{j}^{out} \right)}} & {{Formula}1 - 6}\end{matrix}$

cop(T_(j) ^(out))=0.0068T_(j) ^(out) ² +0.0008T_(j) ^(out)+0.458. C is aspecific heat capacity of air, and a value is 1005. There is thecalculation formula of a coefficient of performance (coefficient ofperformance (COP), indicating a cooling capacity that can be obtained inunit power consumption), and 0.0068, 0.0008, and 0.458 that are in thecalculation formula are coefficient values obtained through a largequantity of experiments. P_(crac) ^(j) indicates a power of the j^(th)air conditioner.

Step e1: Determine a temperature control power of the at least onetemperature regulating device based on the power of each temperatureregulating device. Specifically, the temperature control power of the atleast one temperature regulating device is a sum of powers of alltemperature regulating devices.

Step f1: Determine, based on the calculation power of the plurality ofcabinets and the temperature control power of the at least onetemperature regulating device, the candidate total power correspondingto the candidate server.

The candidate total power corresponding to each candidate server may bedetermined in a same manner. Then, the energy-saving device may select,from the plurality of candidate servers, the candidate server with thelowest corresponding candidate total power as the target server.

In some other embodiments, a manner in which the energy-saving devicedetermines the target server for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information andthe computing resource status information may alternatively be:determining an alternate server in each cabinet in the machine room forthe to-be-migrated computing resource based on the computing resourcestatus information, where a first power variation is not greater than asecond power variation, the first power variation is a power variationthat is of the alternate server and that is required if theto-be-migrated computing resource is migrated to the alternate server,and the second power variation is a power variation that is of a serverother than the alternate server in a same cabinet and that is requiredif the to-be-migrated computing resource is migrated to the server otherthan the alternate server; determining, based on the computing resourcestatus information and the cooling capacity conduction relationshipinformation, a power balance degree corresponding to each cabinet, wherethe power balance degree is a power balance degree that is of themachine room and that is required if the to-be-migrated computingresource is migrated to the alternate server in each cabinet; andselecting, as the target server, an alternate server in a cabinet with aminimum corresponding power balance degree in the plurality of cabinets.

It can be noted that, the energy-saving device may first select, fromthe plurality of servers in the machine room, some servers that meet therunning requirement of the to-be-migrated computing resource (referringto the descriptions in the foregoing content), and then select thealternate server from the servers. For a manner of calculating a powervariation that is of a server and that is required if the to-be-migratedcomputing resource is migrated to the server, refer to the descriptionsin the foregoing content. Details are not described herein again.

Optionally, the method further includes: determining, based on one ormore of a quantity of CPU cores of the to-be-migrated computingresource, CPU utilization of the to-be-migrated computing resource, thequantity of CPU cores of the alternate server, or the no load powerconsumption or the full load power consumption of the alternate server,the power variation that is of the alternate server and that is requiredif the to-be-migrated computing resource is migrated to the alternateserver. The energy-saving device may determine, based on the computingresource status information, one or more of the quantity of CPU cores ofthe to-be-migrated computing resource, the CPU utilization of theto-be-migrated computing resource, the quantity of CPU cores of thealternate server, or the no load power consumption or the full loadpower consumption of the alternate server.

In a possible implementation, a normalized power of each cabinet isdetermined based on cooling capacity conduction relationship informationbetween each cabinet and a home temperature regulating devicecorresponding to each cabinet and a power that is of each cabinet andthat is required if the to-be-migrated computing resource is migrated tothe alternate server in each cabinet. The power balance degreecorresponding to each cabinet is determined based on the normalizedpower of each cabinet.

For example, a manner of calculating a power balance degree requiredwhen the to-be-migrated computing resource is migrated to server k isdescribed. Server k is a server in cabinet i.

Step a2: Calculate the CPU utilization S_(cpu-u) of each server that isin the machine room.

The CPU utilization of the server is obtained by dividing, by thequantity of CPU cores of the server, the result of the sum of the CPUloads of all the virtual machines on the server plus the sum of the CPUrequirements for virtual machine creation tasks on the server. Thequantity of CPU cores of the virtual machine multiplied by the CPUutilization of the virtual machine equals the CPU load of the virtualmachine. S_(cpu-u) ^(k) indicates CPU utilization of server k.

Step b2: Calculate the power P_(server) of each server that is in themachine room.

If the server includes the virtual machine, P_(server) ^(k)=P_(idle)^(k)+S_(cpu-u) ^(k)*(P_(full) ^(k)−P_(idle) ^(k)). P_(server) ^(k)indicates the power of server k, P_(full) ^(k) is the full load powerconsumption of server k, and P_(idle) ^(k) is the no load powerconsumption of server k. The power of the server is linearly related tothe CPU utilization of the server.

If there is no virtual machine on the server, P_(server) ^(k)=0,indicating that the power of server k is 0.

Step c2: Calculate the power P_(rack) of each cabinet that is in themachine room: The cabinet power is equal to the sum of the powers of allthe servers in the cabinet. P_(rack) ^(i) indicates the power of thei^(th) cabinet.

Step d2: Calculate the normalized power ˜P_(rack) of each cabinet in themachine room.

For example, for cabinet i, a home temperature regulating devicecorresponding to the cabinet is determined according to Table 1. Forexample, the temperature regulating device is temperature regulatingdevice j. A TCI between the i^(th) cabinet and the j^(th) airconditioner is obtained from the TCI table, and is denoted as tci_(ij).Then, a normalized power of cabinet i is

${\sim P_{rack}^{i}} = {\frac{P_{rack}^{i}}{{tci}_{ij}}.}$

The normalized power ˜P_(rack) of each cabinet in the machine room canbe calculated in a same manner.

Step e2: Calculate a standard deviation of normalized powers ˜P_(rack)^(i) of all cabinets in the machine room, and use the standard deviation(which may alternatively be a variance) as a power balance degreecorresponding to cabinet i.

In the foregoing similar manner, the power balance degree correspondingto each cabinet that is in the machine room may be determined. Then, thealternate server in the cabinet with the minimum corresponding powerbalance degree in the plurality of cabinets is selected as the targetserver. It can be noted that a smaller power balance degree indicatesmore balanced powers between cabinets in the machine room. In this way,the temperature control power of the temperature regulating device islow. In this manner, the alternate server in each cabinet in the machineroom may be selected, and the plurality of alternate servers are theservers with the minimum corresponding power variations. In this way,assuming that the to-be-migrated computing resource is migrated to theseservers, the calculation power of the servers is reduced. Further, thealternate server in the cabinet with the minimum power balance degree inthe plurality of cabinets is then selected as the target server, so thatthe temperature control power that is of the temperature regulatingdevice and that is required if the migration is performed may bereduced, so that the total power that is of the machine room and that isrequired after the migration may be less than the total power that is ofthe machine room and that is required before the migration.

S13: Generate, as the computing resource adjustment instruction set, aninstruction set for migrating the to-be-migrated computing resource tothe target server.

In a possible implementation, the method further includes: calculating apower that is of each of the plurality of cabinets and that is requiredif the computing resource adjustment instruction set is executed;determining a temperature setting parameter of each of the at least onetemperature regulating device based on the power of each of theplurality of cabinets, where the temperature setting parameter is formeeting temperature requirements that are of the plurality of cabinetsand that are generated after the computing resource adjustmentinstruction set is executed; and triggering the facility managementdevice to execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter. The temperature regulation instructionset may include one or more temperature regulating instructions. Thetemperature regulating instruction may be for regulating a runningstatus (on or off) of the temperature regulating device, or may be forregulating a setting temperature of the temperature regulating device.It can be noted that, for a manner of determining the temperaturesetting parameter of each temperature regulating device, refer todescriptions of step a1 to step c1 in the foregoing content. Inaddition, in a specific application process, the determining step maynot need to be performed again, and the temperature setting parameterthat is of each temperature regulating device and that corresponds tothe target server may be selected from a previously determinedtemperature setting parameter.

For example, the computing resource adjustment instruction set and thetemperature regulation instruction set may be:

 {   “vmMigrateInstruction”: { // Virtual machine migration instructionset in the computing resource adjustment instruction set    “vm1”:“server4”, // Virtual machine 1 is migrated to server4    “vm3”:“server9”, // Virtual machine 3 is migrated to server9    “vm7”:“server9”, // Virtual machine 7 is migrated to server9   },  “taskScheduleInstruction”: { // Task schedule instruction set in thecomputing resource adjustment instruction set    “task1”: “server14”, //Task 1 is scheduled to server14    “task2”: “server7”, // Task 2 isscheduled to server7    “task3”: “server9”, // Task 3 is scheduled toserver9   },   “cracSetting”: { // Temperature regulation instructionset    “A1”: {// Air conditioner A1 is turned on and the temperature is   set to 23°C     “switch”:1,     “temp”: 23    },    “A2”: { // Airconditioner A2 is turned off     “switch”: 0    }   }  }

In some other embodiments, the computing resource management instructionset is a computing resource allocation instruction set, and thecomputing resource allocation instruction set is for allocating the atleast one computing resource in the machine room. It may be understoodthat the at least one computing resource may be a virtual machine or atask. The computing resource allocation instruction set may include oneor more allocation instructions for the computing resource. In thisembodiment of this application, an increment between total powers thatare of the machine room and that are required before and after thecomputing resource allocation instruction set is executed is minimized.It can be noted that minimizing the increment of the total power of themachine room means that the increment of the total power that is of themachine room and that is required when the computing resource allocationinstruction set is executed is less than an increment of the total powerthat is of the machine room and that is required when another allocationinstruction set is executed.

Optionally, a process in which the energy-saving device triggers, basedon the cooling capacity conduction relationship information and thecomputing resource status information, the facility management device toexecute the computing resource management instruction set may includethe following steps.

S21: Receive a service requirement, where the service requirement is forrequesting to run the computing resource in the machine room.

It can be noted that the service requirement may be a servicerequirement from an outside of the machine room, or may be a servicerequirement generated by the machine room.

S22: Determine, in the machine room based on the service requirement andthe computing resource status information, a target computing resourcethat meets the service requirement and a target server that provides thetarget computing resource.

An increment between total powers that are of the machine room and thatare required before and after the target server provides the targetcomputing resource is minimized.

In some application scenarios, for a service requirement newly obtainedby the machine room, the machine room may allocate the target computingresource for the service requirement in real time, and determine thetarget server that provides the target computing resource. For example,the service requirement in this scenario may be a computing service.This type of service is generally insensitive to a delay, and has a lowrequirement on a response speed of the service. For example, the servicerequirement may be a service requirement of a spark service, a mr(mapreduce) service, a graph computing service, an audio/videoencoding/decoding service, or the like. The service requirement may befrom a device outside the machine room, or may be from a device insidethe machine room.

In some embodiments, a manner of determining, based on the servicerequirement, the cooling capacity conduction relationship information,and the computing resource status information, the target server for theto-be-migrated computing resource may be: determining, for the targetcomputing resource based on the service requirement, the coolingcapacity conduction relationship information, and the computing resourcestatus information, a plurality of candidate servers and a candidateincrement corresponding to each candidate server, where the candidateincrement is an increment of a total power that is of the machine roomand that is required if the target computing resource is migrated toeach candidate server; and selecting, from a set of the plurality ofcandidate servers, a candidate server with a lowest correspondingcandidate increment as the target server.

The following describes some methods for determining the candidateserver.

In a first possible implementation, to enable the target computingresource to run normally in the target server, it is required that aquantity of CPU cores of the candidate server is not less than a sum ofa quantity of CPU cores of the target computing resource and a quantityof CPU cores of an existing computing resource in the candidate server;and/or a memory specification of the candidate server is not less than asum of a memory specification of the target computing resource and amemory specification of the existing computing resource in the candidateserver. In addition, a further requirement may be further imposed on thecandidate server based on the service requirement. For example, if theservice is an authentication task, the candidate server needs to have anauthentication function. It can be noted that some other requirementsmay be further added to the candidate server. This is not specificallylimited in this embodiment of this application. In this implementation,a server that meets a running requirement (or is expressed as “meets theservice requirement”) of the target computing resource and that is inthe machine room may be used as the candidate server.

In a second possible implementation, the energy-saving device may firstselect, as an alternate server from a plurality of servers in themachine room, a server that meets a running requirement (referring todescriptions of the first possible implementation) of the targetcomputing resource; and then determine, based on the computing resourcestatus information, a power variation corresponding to each alternateserver, where the power variation is a power variation that is of eachalternate server and that is required if the target computing resourceis migrated to each alternate server. An alternate server with a minimumcorresponding power variation in each cabinet form the plurality ofcandidate servers. In this manner, the plurality of candidate serversare servers with minimum corresponding power variations. Therefore, whenthe target computing resource is allocated to these servers, anincrement of the calculation power of the servers is small, so that anincrement of a total power that is of the machine room and that isrequired after the allocation is small.

Optionally, the method further includes: determining, based on one ormore of a quantity of CPU cores of the target computing resource, CPUutilization of the target computing resource, a quantity of CPU cores ofthe alternate server, or no load power consumption or full load powerconsumption of the alternate server, the power variation that is of thealternate server and that is required if the target computing resourceis migrated to the alternate server. For a manner of calculating thepower variation corresponding to each alternate server, refer to thedescriptions in the foregoing embodiment. Details are not describedherein again.

In a third possible implementation, the energy-saving device may firstselect, as an alternate server from a plurality of servers in themachine room, a server that meets a running requirement (referring tothe descriptions of the first possible implementation) of the targetcomputing resource. Then, based on the cooling capacity conductionrelationship information and the computing resource status information,a plurality of alternative cabinets that are in the machine room andthat have a largest TCI with each temperature regulating device aredetermined (where for example, in Table 1, a cabinet having a largestTCI with temperature regulating device A1 is cabinet L4), and alternateservers located in the plurality of alternative cabinets are used as theplurality of candidate servers. In this manner, the plurality ofcandidate servers have the largest TCIs with the temperature regulatingdevice, indicating that cooling capacity absorption capabilities of thecandidate servers are stronger. In this way, when the target computingresource is allocated to these servers, an increment of a temperaturecontrol power of the temperature regulating device is small, so that theincrement of the total power that is of the machine room and that isrequired after the migration is small.

It can be noted that the target computing resource may include aplurality of computing resources, and one target server may bedetermined for each target computing resource. Target servers ofdifferent target computing resources may be the same or may bedifferent. A computing resource instruction for allocating each targetcomputing resource to the target server corresponding to the targetcomputing resource forms the computing resource allocation instructionset.

Optionally, the target servers may be sequentially determined for thetarget computing resources in descending order of CPU utilization of thetarget computing resources. Because the target computing resource withhigh CPU utilization occupies a high power, in this manner, the targetcomputing resource that has a large impact on the total power of themachine room may be first migrated, so that an increment of the totalpower of the machine room is small.

In addition, it can be noted that, after a target server correspondingto a target computing resource is determined, running status informationof the target server needs to be updated, and the reason is that thetarget server needs to reserve computing resources for the targetcomputing resource. In other words, in a process of selecting a targetserver corresponding to a next target computing resource, computingresource status information updated based on a selection result of aprevious to-be-selected computing resource is used.

The following describes a manner of determining the candidate incrementcorresponding to each candidate server. The method may include thefollowing steps.

Step a3: Obtain a first total power that is of the machine room and thatis required before assumed allocation of the target computing resourceto a candidate server is performed.

Step b3: Obtain a power that is of each of the plurality of cabinets andthat is required if the target computing resource is allocated to onecandidate server.

Step c3: Determine the calculation power of the plurality of cabinetsbased on the power of each cabinet. Specifically, the calculation powerof the plurality of cabinets is a sum of powers of all the cabinets.

Step d3: Determine a temperature setting parameter of each of the atleast one temperature regulating device based on the power of each ofthe plurality of cabinets, where the temperature setting parameter isfor meeting temperature requirements that are of the plurality ofcabinets and that are required after the target computing resource isallocated to one candidate server.

Step e3: Calculate a power of each temperature regulating device basedon the air inlet temperature and the air outlet temperature (which maybe obtained from step d3) that are of each temperature regulating deviceand that correspond to the temperature setting parameter of eachtemperature regulating device.

Step f3: Determine a temperature control power of the at least onetemperature regulating device based on the power of each temperatureregulating device. Specifically, the temperature control power of the atleast one temperature regulating device is a sum of powers of alltemperature regulating devices.

Step g3: Determine, based on the calculation power of the plurality ofcabinets and the temperature control power of the at least onetemperature regulating device, a second total power, of a machine room,corresponding to the candidate server, where a candidate incrementcorresponding to the candidate server is a difference between the secondtotal power and the first total power.

It can be noted that, for an execution manner of step b3 to step g3,refer to an execution manner of step a1 to step f1 described in theforegoing content. The candidate increment corresponding to eachcandidate server may be determined in a same manner. Then, the candidateserver with the lowest corresponding candidate increment is selected,from a set of the plurality of candidate servers, as the target server.

In some other embodiments, a manner in which the energy-saving devicedetermines the target server for the target computing resource based onthe cooling capacity conduction relationship information and thecomputing resource status information may alternatively be: determiningan alternate server in each cabinet in the machine room for the targetcomputing resource based on the computing resource status information,where a third power variation is not greater than a fourth powervariation, the third power variation is a power variation that is of thealternate server and that is required if the target computing resourceis migrated to the alternate server, and the fourth power variation is apower variation that is of a server other than the alternate server in asame cabinet and that is required if the target computing resource ismigrated to the server other than the alternate server; determining,based on the computing resource status information and the coolingcapacity conduction relationship information, a power balance degreecorresponding to each cabinet, where the power balance degree is a powerbalance degree that is of the machine room and that is required if thetarget computing resource is migrated to the alternate server in eachcabinet; and selecting, as the target server, an alternate server in acabinet with a minimum corresponding power balance degree in theplurality of cabinets.

It can be noted that, the energy-saving device may first select, fromthe plurality of servers in the machine room, some servers that meet therunning requirement of the target computing resource (referring to thedescriptions in the first possible implementation), and then select thealternate server from the servers. For a manner of calculating a powervariation that is of a server and that is required if the targetcomputing resource is migrated to the server, refer to the descriptionsin the foregoing content. Details are not described herein again.

Optionally, the method further includes: determining, based on one ormore of a quantity of CPU cores of the target computing resource, CPUutilization of the target computing resource, the quantity of CPU coresof the alternate server, or the no load power consumption or the fullload power consumption of the alternate server, the power variation thatis of the alternate server and that is required if the target computingresource is migrated to the alternate server. The energy-saving devicemay determine, based on the computing resource status information, oneor more of the quantity of CPU cores of the target computing resource,the CPU utilization of the target computing resource, the quantity ofCPU cores of the alternate server, or the no load power consumption orthe full load power consumption of the alternate server.

In a possible implementation, a normalized power of each cabinet isdetermined based on cooling capacity conduction relationship informationbetween each cabinet and a home temperature regulating devicecorresponding to each cabinet and a power that is of each cabinet andthat is required if the target computing resource is migrated to thealternate server in each cabinet. The power balance degree correspondingto each cabinet is determined based on the normalized power of eachcabinet.

It can be noted that, for a manner of calculating a power balance degreerequired when the target computing resource is migrated to server k,refer to descriptions of the foregoing steps a2 to e2. Details are notdescribed herein again.

In the foregoing similar manner, the power balance degree correspondingto each cabinet that is in the machine room may be determined. Then, thealternate server in the cabinet with the minimum corresponding powerbalance degree in the plurality of cabinets is selected as the targetserver. It can be noted that a smaller power balance degree indicatesmore balanced powers between cabinets in the machine room. In this way,the temperature control power of the temperature regulating device islow. In this manner, the alternate server in each cabinet in the machineroom may be selected, and a plurality of alternate servers are serverswith minimum corresponding power variations. In this way, assuming thatthe target computing resource is allocated to these servers, anincrement of a calculation power of the servers is small. Further, thealternate server in the cabinet with the minimum power balance degree inthe plurality of cabinets is then selected as the target server, so thatan increment of the temperature control power that is of the temperatureregulating device and that is required if migration is performed may besmall, so that an increment of the total power that is of the machineroom and that is required after the migration may be small.

S23: Generate, as the computing resource allocation instruction set, aninstruction set for allocating the target computing resource by thetarget server.

In a possible implementation, the method further includes: calculating apower that is of each of the plurality of cabinets and that is requiredif the computing resource allocation instruction set is executed;determining a temperature setting parameter of each of the at least onetemperature regulating device based on the power of each of theplurality of cabinets, where the temperature setting parameter is formeeting temperature requirements that are of the plurality of cabinetsand that are required after the computing resource allocationinstruction set is executed; and triggering the facility managementdevice to execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter. It can be noted that, for a manner ofdetermining the temperature setting parameter of each temperatureregulating device, refer to descriptions of step a2 to step c2 in theforegoing content. In addition, in a specific application process, thedetermining step may not need to be performed again, and the temperaturesetting parameter that is of each temperature regulating device and thatcorresponds to the target server may be selected from a previouslydetermined temperature setting parameter.

In some other embodiments of this application, considering a largedifference between capabilities of cabinets at locations in the machineroom to absorb a cooling capacity of the temperature regulating device,the energy-saving device may partition the cabinet and the temperatureregulating device that are included in the machine room. One partitionincludes one temperature regulating device and at least one cabinet.Then, a to-be-selected partition combination with a stronger coolingcapacity absorption capability and a stronger cooling capacity sharingcapability is determined from partitions. The to-be-migrated computingresource is migrated to a server that is in the to-be-selected partitioncombination, or the target computing resource is allocated to a serverthat is in the to-be-selected partition combination. Because theto-be-selected partition combination has a strong cooling capacityabsorption capability and cooling capacity sharing capability, in thismanner, a temperature control power of the temperature regulating devicemay be reduced, so that the total power of the machine room isminimized.

In a possible manner, the cabinet and the temperature regulating devicethat are included in the machine room may be partitioned based on thecooling capacity conduction relationship information of the machineroom. For example, the machine room includes a first partition, and thefirst partition includes a second temperature regulating device and atleast one second cabinet; and a capability of each second cabinet toabsorb a cooling capacity of the second temperature regulating device isstronger than a capability of each second cabinet to absorb a coolingcapacity of a temperature regulating device other than the secondtemperature regulating device in a plurality of temperature regulatingdevices. This may be understood as that a partition includes atemperature regulating device and a cabinet with a highest capability toabsorb a cooling capacity of the temperature regulating device. A homingrelationship between the cabinet and the temperature regulating devicedescribed in the foregoing content is used for understanding. Onepartition includes one temperature regulating device, and a cabinet thatuses the temperature regulating device as a home temperature regulatingdevice.

The example shown in Table 1 is used as an example. For a partitionmanner of the machine room, refer to Table 2.

TABLE 2 Partition Temperature regulating device Cabinets P1 A1 L1, L2,L3, and L4 P2 A2 L5, L6, L7, and L8 P3 A3 R1, R2, R3, and R4 P4 A4 R5,R6, R7, and R8

A value of each unit in the “partition” column is a number of apartition, a value of each unit in the “temperature regulating device”column is a number of a temperature regulating device in a correspondingpartition, and values of each unit in the “cabinet” column are numbersof a group of cabinets in a corresponding partition.

Optionally, partition cooling capacity absorption relationshipinformation of a partition and cooling capacity sharing relationshipinformation between two partitions may be determined based on thecooling capacity conduction relationship information. The partitioncooling capacity absorption relationship information indicates acapability of a cabinet in each partition in the machine room to absorba cooling capacity of a temperature regulating device in the partition,and one partition includes one temperature regulating device and atleast one cabinet. The cooling capacity sharing relationship informationindicates a capability of a cabinet in one partition to share a coolingcapacity of a temperature regulating device in the other partitionbetween every two partitions in the machine room.

For example, the machine room includes the first partition, and thefirst partition includes the second temperature regulating device andthe at least one second cabinet. The method in this embodiment of thisapplication further includes: determining partition cooling capacityabsorption relationship information of the first partition based on acapability of each of the at least one second cabinet to absorb acooling capacity of the second temperature regulating device.Specifically, the partition cooling capacity absorption relationshipinformation of the first partition is an association relationshipbetween a cabinet in the first partition, a temperature regulatingdevice in the first partition, and a partition temperature index(partition temperature index, PTI). In this embodiment of thisapplication, the PTI is used to describe a capability of a cabinet in apartition to absorb a cooling capacity of a temperature regulatingdevice that is in the partition. For example, a larger value indicates astronger capability of a cabinet in a partition to absorb a coolingcapacity of a temperature regulating device that is in the partition. Avalue of the PTI of the first partition is a sum of values of TCIsbetween cabinets in the first partition and the temperature regulatingdevice that is in the first partition.

Table 1 and Table 2 are used as an example. Partition cooling capacityabsorption relationship information of the machine room may berepresented as Table 3.

TABLE 3 Partition Temperature regulating device Cabinets PTI P1 A1 L1,L2, L3, and L4 2.87 P2 A2 L5, L6, L7, and L8 2.89 P3 A3 R1, R2, R3, andR4 2.96 P4 A4 R5, R6, R7, and R8 2.94

A value of each unit in the “PTI” column indicates a PTI value of acorresponding partition. Partition P1 is used as an example. A PTI ofpartition P1 is a sum of TCIs between temperature regulating device A1and cabinet L1, temperature regulating device A1 and cabinet L2,temperature regulating device A1 and cabinet L3, and temperatureregulating device A1 and cabinet L4, that is, 0.64+0.72+0.75+0.76=2.87.

For example, the machine room further includes a second partition, andthe second partition includes a third temperature regulating device andat least one third cabinet. The method in this embodiment of thisapplication further includes: determining cooling capacity sharingrelationship information between the first partition and the secondpartition based on a capability of each of the at least one secondcabinet to absorb a cooling capacity of the third temperature regulatingdevice and a capability of each of the at least one third cabinet toabsorb a cooling capacity of the second temperature regulating device.Specifically, the cold capacity sharing relationship information betweenthe first partition and the second partition is an associationrelationship between the first partition, the second partition, and apartition correlation index (partition correlation index, PCI). In thisembodiment of this application, the PCI is used to describe a capabilityof a cabinet in one partition to share a cooling capacity of atemperature regulating device in the other partition between every twopartitions. For example, a larger value indicates a stronger capabilityof a cabinet in a partition to absorb a cooling capacity of atemperature regulating device that is in the other partition. A value ofthe PCI between the first partition and the second partition is half ofa sum of a sum of values of TCIs between cabinets in the first partitionand the temperature regulating device that is in the second partitionand a sum of values of TCIs between cabinets in the second partition andthe temperature regulating device that is in the first partition.

For example, Table 1 and Table 2 are used as an example. A PCI betweenpartition P1 and partitionP3=((0.33+0.28+0.31+0.29)+(0.31+0.24+0.24+0.27))/2=1.13, where 0.33,0.28, 0.31, and 0.29 are TCIs between cabinets L1, L2, L3, and L4 inpartition P1 and temperature regulating device A3 in partition P3, and0.31, 0.24, 0.24, and 0.27 are TCIs between cabinets R1, R2, R3, and R4in partition P3 and temperature regulating device A1 in partition P1. Inthis way, a PCI between every two partitions in the machine room can becalculated.

Table 1 and Table 2 are used as an example. Cooling capacity sharingrelationship information of the machine room may be represented as Table4.

TABLE 4 Partition 1 Partition 2 PCI P1 P2 0.4 P1 P3 1.13 P1 P4 0.29 P2P3 0.27 P2 P4 1.21 P3 P4 0.35

A value of each unit in the “partition 1” column is a number of a firstpartition in two partitions that share a cooling capacity. A value ofeach unit in the “partition 2” column is a number of a second partitionin the two partitions that share the cooling capacity. A value of eachunit in the “PCI” column is a PCI between the first partition and thesecond partition. For example, the first row in the table of the PCIbetween partitions indicates that a value of a capability of a coolingcapacity shared by partition P1 and partition P2 is 0.4, to be specific,a half of a sum of values of capabilities of all cabinets in partitionP1 to absorb a cooling capacity provided by the temperature regulatingdevice in partition P2 and values of capabilities of all cabinets inpartition P2 to absorb a cooling capacity provided by the temperatureregulating device in partition P1 is 0.4.

In a possible implementation, a to-be-selected partition combination setmay be determined based on the partition cooling capacity absorptionrelationship information and the cooling capacity sharing relationshipinformation. The to-be-selected partition combination set includes aplurality of to-be-selected partition combinations having differentpartition quantities, where one to-be-selected partition combination isa partition combination having a strongest cooling capacity absorptioncapability and a strongest cooling capacity sharing capability in one ormore partition combinations having a same partition quantity. It can benoted that one partition combination may include one or more partitions.For example, when one partition combination includes one partition,partition combinations may be P1, P2, P3, and P4. When one partitioncombination includes two partitions, partition combinations may be: apartition combination of P1 and P2, a partition combination of P1 andP3, a partition combination of P1 and P4, a partition combination of P2and P3, a partition combination of P2 and P4, and a partitioncombination of P3 and P4. When one partition combination includes threepartitions, partition combinations may be a partition combination of P1,P2, and P3, a partition combination of P1, P3, and P4, and a partitioncombination of P2, P3, and P4. If one partition combination includesfour partitions, the partition combination is a partition combination ofP1, P2, P3, and P4.

Optionally, a sum, of PTIs and PCIs, corresponding to each of one ormore partition combinations having a same partition quantity iscalculated. A partition combination corresponding to a largest sum ofPTIs and PCIs is used as the to-be-selected partition combination. Itcan be noted that, when there is only one partition in the partitioncombination, because the partition combination does not have the coolingcapacity sharing capability, PTIs of the partition combinations may becompared.

The foregoing machine room is used as an example. When the partitionquantity is 2, a sum of PTIs and a PCI of the partition combination ofP2 and P4 is 2.89+2.94+1.21=7.04, and is greater than 6.16 of thepartition combination of P1 and P2, 6.1 of the partition combination ofP1 and P4, 6.12 of the partition combination of P2 and P3, 6.96 of thepartition combination of P1 and P3, and 6.25 of the partitioncombination of P3 and P4. Therefore, when the partition quantity is 2,the to-be-selected partition combination is the partition combination ofP2 and P4.

Table 2, Table 3, and Table 4 are used as an example. The to-be-selectedpartition combination set of the machine room may be represented asTable 5.

TABLE 5 To-be-selected partition Sum of PTIs Partition quantitycombination and PCIs 1 P3 2.96 2 P2 and P4 7.04 3 P2, P3, and P4 10.62 4P1, P2, P3, and P4 15.31

A value of each unit in the “partition quantity” column is a partitionquantity included in a to-be-selected partition combination. A value ofeach unit in the “to-be-selected partition combination” column is ato-be-selected partition combination with a corresponding partitionquantity. A value of each unit in the “sum of PTIs and PCIs” column is asum of PTIs in the partitions and PCIs between partitions in acorresponding to-be-selected partition combination. For example, it maybe learned from Table 5 that, when the partition quantity is 3, theto-be-selected partition combination is the partition combination of P2,P3, and P4.

Based on the descriptions of this part of content and with reference tothe foregoing solution, some other methods for determining a candidateserver in this solution may be proposed. The following describes thesemanners.

In some embodiments, the energy-saving device may determine a pluralityof candidate servers and a candidate total power corresponding to eachcandidate server for the to-be-migrated computing resource based on thecooling capacity conduction relationship information, the to-be-selectedpartition combination set, and the computing resource statusinformation, where the plurality of candidate servers belong to theto-be-selected partition combination set.

Optionally, a manner in which the energy-saving device may determine theplurality of candidate servers for the to-be-migrated computing resourcebased on the cooling capacity conduction relationship information, theto-be-selected partition combination set, and the computing resourcestatus information may include the following steps.

S31: Determine, for the to-be-migrated computing resource based on thecomputing resource status information, an alternate server in eachcabinet in each to-be-selected partition combination in theto-be-selected partition combination set.

A first power variation is not greater than a second power variation,the first power variation is a power variation that is of the alternateserver and that is required if the to-be-migrated computing resource ismigrated to the alternate server, and the second power variation is apower variation that is of a server other than the alternate server in asame cabinet and that is required if the to-be-migrated computingresource is migrated to the server other than the alternate server. Itcan be noted that, some servers that meet a running requirement of theto-be-migrated computing resource (referring to the descriptions in theforegoing content) may be first selected from servers in eachto-be-selected partition combination, and then the alternate server isselected from these servers.

In addition, for a manner of calculating a power variation that is of aserver and that is required if the to-be-migrated computing resource ismigrated to the server, refer to the descriptions in the foregoingcontent. Details are not described herein again. In this manner, thealternate server in each cabinet in each to-be-selected partitioncombination may be selected, and a plurality of alternate servers areservers with minimum corresponding power variations. In this way,assuming that the to-be-migrated computing resource is migrated to theseservers, a calculation power of the servers is reduced. Therefore, thetotal power that is of the machine room and that is required after themigration is less than the total power that is of the machine room andthat is required before the migration.

S32: Determine, based on the computing resource status information andthe cooling capacity conduction relationship information, a powerbalance degree corresponding to each cabinet, where the power balancedegree is a power balance degree that is of the to-be-selected partitioncombination to which each cabinet belongs and that is required if theto-be-migrated computing resource is migrated to the alternate server ineach cabinet. Optionally, the method further includes: determining,based on one or more of a quantity of CPU cores of the to-be-migratedcomputing resource, CPU utilization of the to-be-migrated computingresource, a quantity of CPU cores of the alternate server, or no loadpower consumption or full load power consumption of the alternateserver, the power variation that is of the alternate server and that isrequired if the to-be-migrated computing resource is migrated to thealternate server. The energy-saving device may determine, based on thecomputing resource status information, one or more of the quantity ofCPU cores of the to-be-migrated computing resource, the CPU utilizationof the to-be-migrated computing resource, the quantity of CPU cores ofthe alternate server, or the no load power consumption or the full loadpower consumption of the alternate server.

In a possible implementation, a normalized power of each cabinet isdetermined based on cooling capacity conduction relationship information(or may be expressed as cooling capacity conduction relationshipinformation between each cabinet and a home temperature regulatingdevice corresponding to each cabinet) between each cabinet and atemperature regulating device of a partition in which each cabinet islocated and a power that is of each cabinet and that is required if theto-be-migrated computing resource is migrated to the alternate server ineach cabinet. The power balance degree corresponding to each cabinet isdetermined based on the normalized power of each cabinet.

For example, a manner of calculating a power balance degree requiredwhen the to-be-migrated computing resource is migrated to server k isdescribed. Server k is a server in cabinet i. A to-be-selected partitioncombination to which the cabinet belongs is to-be-selected partitioncombination m.

Step a4: Calculate CPU utilization S_(cpu-u) of each server that is into-be-selected partition combination m.

The CPU utilization of the server is obtained by dividing, by thequantity of CPU cores of the server, the result of the sum of the CPUloads of all the virtual machines on the server plus the sum of the CPUrequirements for virtual machine creation tasks on the server. Thequantity of CPU cores of the virtual machine multiplied by the CPUutilization of the virtual machine equals the CPU load of the virtualmachine. S_(cpu-u) ^(k) indicates CPU utilization of server k.

Step b4: Calculate a power P_(server) of each server that is into-be-selected partition combination m.

If the server includes the virtual machine, P_(server) ^(k)=P_(idle)^(k)+S_(cpu-u) ^(k)*(P_(full) ^(k)−P_(idle) ^(k)). P_(server) ^(k)indicates a power of server k, P_(full) ^(k) is full load powerconsumption of server k, and P_(idle) ^(k) is no load power consumptionof server k. A power of a server is linearly related to CPU utilizationof a server.

If there is no virtual machine on the server, P_(server) ^(k)=0,indicating that a power of server k is 0.

Step c4: Calculate a power P_(rack) of each cabinet that is into-be-selected partition combination m: A cabinet power is equal to asum of powers of all servers in the cabinet. P_(rack) ^(i) indicates apower of an i^(th) cabinet.

Step d4: Calculate a normalized power ˜P_(rack) of each cabinet into-be-selected partition combination m.

For example, for cabinet i, a temperature regulating device of apartition in which the cabinet is located is obtained according to thetable of the PTI in the partition, and a number of the temperatureregulating device is denoted as j. A TCI between the i^(th) cabinet anda j^(th) air conditioner is obtained from the TCI table, and is denotedas tci_(ij). In this case, a normalized number

${\sim P_{rack}^{i}} = \frac{P_{rack}^{i}}{{tci}_{ij}}$

of cabinet i is obtained. The normalized power ˜P_(rack) of each cabinetin to-be-selected partition combination m can be calculated in a samemanner.

Step e4: Calculate a standard deviation of normalized powers ˜P_(rack)^(i) of all cabinets in to-be-selected partition combination m, and usethe standard deviation (which may alternatively be a variance) as apower balance degree corresponding to cabinet i.

In the foregoing similar manner, a power balance degree corresponding toeach cabinet in each to-be-selected partition combination may bedetermined.

S33: Use an alternate server in a cabinet with a minimum correspondingpower balance degree in each to-be-selected partition combination toform the plurality of candidate servers.

For example, Table 5 is used as an example. In each of fourto-be-selected partition combinations, an alternate server in a cabinetwith a minimum corresponding power balance degree may be determined, andfour servers form the plurality of candidate servers. It can be notedthat, a smaller power balance degree indicates more balanced powersbetween cabinets in the to-be-selected partition combination. In thisway, the temperature control power of the temperature regulating deviceis low. In addition, because the power variation corresponding to thealternate server is also small, when the to-be-migrated computingresource is migrated to these servers, the calculation power of theservers is reduced, so that the total power that is of the machine roomand that is required after the migration is less than the total powerthat is of the machine room and that is required before the migration.

It can be noted that, after determining the plurality of candidateservers in the foregoing described manner, the energy-saving device maythen determine the total candidate power corresponding to each candidateserver, and select, from the plurality of candidate servers, a candidateserver with a lowest corresponding candidate total power as the targetserver.

It can be noted that the to-be-migrated computing resource may include aplurality of computing resources, and one target server may bedetermined for each to-be-migrated computing resource. Target servers ofdifferent to-be-migrated computing resources may be the same or may bedifferent. A computing resource instruction for migrating eachto-be-migrated computing resource to the target server corresponding tothe to-be-migrated computing resource forms the computing resourceadjustment instruction set.

In a possible implementation, the method further includes: calculating apower that is of each of the plurality of cabinets and that is requiredif the computing resource adjustment instruction set is executed;determining a temperature setting parameter of each temperatureregulating device based on a power of a cabinet included in a partitionin which each temperature regulating device is located; and triggeringthe facility management device to execute a temperature regulationinstruction set, where the temperature regulation instruction set isgenerated based on the temperature setting parameter. A temperaturesetting parameter of a temperature regulating device is determined basedon a power of a cabinet included in a partition in which the temperatureregulating device is located, or this may be expressed as that atemperature regulating device needs to meet a temperature requirement ofa cabinet in a partition in which the temperature regulating device islocated. With reference to content in the method for determining atemperature setting parameter of each temperature regulating device(step c1) described in the foregoing content, in this implementation, ifa case in which a cabinet T_(i)>an air inlet temperature upper limit ofthe cabinet (where the air inlet temperature upper limit of the cabinetis W° C., for example, 28° C.) exists, a simulated temperature value ofa temperature regulating device of a partition in which the cabinet islocated may be decreased by a preset value (for example, 1° C.). Then,an air inlet temperature of each cabinet is obtained again based on adecreased simulated temperature value. The foregoing process repeatsuntil each cabinet T_(i)≤an air inlet temperature upper limit of thecabinet. A corresponding simulated temperature value of each temperatureregulating device is determined as a temperature setting parameter ofeach temperature regulating device when each cabinet T_(i)≤the air inlettemperature upper limit of the cabinet.

For example, an example of to-be-selected computing resource adjustmentinstruction sets (for example, including a virtual machine migrationinstruction and a task schedule instruction) that are determined basedon different to-be-selected partition combinations and that are outputby the energy-saving device, and a calculation result that is of acalculation power, a temperature control power, and the temperaturesetting parameter of each temperature regulating device that aredetermined based on the to-be-selected computing resource adjustmentinstruction sets is as follows:

 {   “First to-be-selected partition combination”: { //Calculationresult of a first to-be- selected partition combination    “vmMigrateInstruction”: { // Virtual machine migration instructions        “vm1”: “server4”, // Virtual machine 1 needs to be migrated toserver4         “vm3”: “server9”, // Virtual machine 3 needs to bemigrated to server9         “vm7”: “server9”, // Virtual machine 7 needsto be migrated to server9     },     “taskScheduleInstruction”: { //Task schedule instructions         “task1”: “server14”, // Task 1 needsto be migrated to server14         “task2”: “server7”, // Task 2 needsto be migrated to server7         “task3”: “server9”, // Task 3 needs tobe migrated to server9     },     “cabinetPower”: { // Cabinet powers        “cabinet1”: 80, // A power of cabinet1 is 80 kW        “cabinet2”: 100, // A power of cabinet2 is 100 kW        “cabinet3”: 93 // A power of cabinet3 is 93 kW     },    “ITPower”: 600 // A calculation power is 600 kW      “cracSetting”:{  // Temperature setting parameter of the temperature regulating device       “A1”: {          “switch”:1, // Air conditioner A1 is turned on         “temp”:y1  // A temperature setting parameter of temperatureregulating device A1 is y1°C        },        “A2”: {         “switch”:0 // Air conditioner A2 is turned off        ...       },     },       “CoolingPower”: 200 // The temperature controlpower is 200 kW   },   },   “Second to-be-selected partitioncombination”: {          ...   },    “Third to-be-selected partitioncombination”: {           ...   }

Refer to the foregoing output result. A to-be-selected computingresource adjustment instruction set with a lowest correspondingcandidate total power may be selected as the computer resourceadjustment instruction set, and the temperature regulation instructionset is generated based on a temperature setting parameter that is ofeach temperature regulating device and that corresponds to theto-be-selected computing resource adjustment instruction set with thelowest corresponding candidate total power.

In some embodiments, the energy-saving device may determine theplurality of candidate servers and the candidate increment correspondingto each candidate server for the target computing resource based on theservice requirement, the cooling capacity conduction relationshipinformation, the to-be-selected partition combination set, and thecomputing resource status information, where the plurality of candidateservers belong to the to-be-selected partition combination set.

Optionally, that the energy-saving device determines the plurality ofcandidate servers for the target computing resource based on the servicerequirement, the cooling capacity conduction relationship information,the to-be-selected partition combination set, and the computing resourcestatus information may include the following steps.

S41: Determine, for the target computing resource based on the servicerequirement and the computing resource status information, an alternateserver in each cabinet in each to-be-selected partition combination inthe to-be-selected partition combination set.

Some servers that have a capability of providing the target computingresource are first selected from servers in each to-be-selectedpartition combination, and then the alternate server is selected fromthese servers.

A third power variation is not greater than a fourth power variation,the third power variation is a power variation that is of the alternateserver and that is required if the target computing resource is migratedto the alternate server, and the fourth power variation is a powervariation that is of a server other than the alternate server in a samecabinet and that is required if the target computing resource ismigrated to the server other than the alternate server.

In addition, for a manner of calculating a power variation that is of aserver and that is required if the target computing resource is migratedto the server, refer to the descriptions in the foregoing content.Details are not described herein again. In this manner, the alternateserver in each cabinet in each to-be-selected partition combination maybe selected, and a plurality of alternate servers are servers withminimum corresponding power variations. In this way, when the targetcomputing resource is migrated to these servers, a calculation power ofthe servers is reduced. Therefore, the total power that is of themachine room and that is required after the migration is less than thetotal power that is of the machine room and that is required before themigration.

S42: Determine, based on the computing resource status information andthe cooling capacity conduction relationship information, the powerbalance degree corresponding to each cabinet, where the power balancedegree is the power balance degree that is of the to-be-selectedpartition combination to which each cabinet belongs and that is requiredif the target computing resource is migrated to the alternate server ineach cabinet.

Optionally, the method further includes: determining, based on one ormore of a quantity of CPU cores of the target computing resource, CPUutilization of the target computing resource, a quantity of CPU cores ofthe alternate server, or no load power consumption or full load powerconsumption of the alternate server, the power variation that is of thealternate server and that is required if the target computing resourceis migrated to the alternate server.

In a possible implementation, the normalized power of each cabinet isdetermined based on the cooling capacity conduction relationshipinformation (or may be expressed as the cooling capacity conductionrelationship information between each cabinet and the home temperatureregulating device corresponding to each cabinet) between each cabinetand the temperature regulating device of the partition in which eachcabinet is located and a power that is of each cabinet and that isrequired if the target computing resource is migrated to the alternateserver in each cabinet. The power balance degree corresponding to eachcabinet is determined based on the normalized power of each cabinet.

It can be noted that, for a manner of calculating the power balancedegree corresponding to each cabinet, refer to the descriptions in theforegoing step a4 to step e4.

S43: Use the alternate server in the cabinet with the minimumcorresponding power balance degree in each to-be-selected partitioncombination to form the plurality of candidate servers.

For example, Table 5 is used as an example. In each of fourto-be-selected partition combinations, the alternate server in thecabinet with the minimum corresponding power balance degree may bedetermined, and the four servers form the plurality of candidateservers. It can be noted that, the smaller power balance degreeindicates more balanced powers between the cabinets in theto-be-selected partition combination. In this way, the temperaturecontrol power of the temperature regulating device is low. In addition,because the power variation corresponding to the alternate server isalso small, when the target computing resource is allocated to theseservers, an increment of the calculation power of the servers is small,so that an increment between total powers that are of the machine roomand that are required before and after allocation is less than anincrement between total powers that are of the machine room and that arerequired before and after another computing resource allocationinstruction set is executed.

It can be noted that, after determining the plurality of candidateservers in the foregoing described manner, the energy-saving device maythen determine an increment of the total candidate power correspondingto each candidate server, and select, from the plurality of candidateservers, a candidate server with a lowest corresponding candidate totalpower increment as the target server.

It can be noted that the target computing resource may include aplurality of computing resources, and one target server may bedetermined for each target computing resource. Target servers ofdifferent target computing resources may be the same or may bedifferent. A computing resource instruction for allocating each targetcomputing resource to the target server corresponding to the targetcomputing resource forms the computing resource allocation instructionset.

In a possible implementation, the method further includes: calculatingthe power that is of each of the plurality of cabinets and that isrequired if the computing resource allocation instruction set isexecuted; determining the temperature setting parameter of eachtemperature regulating device based on the power of the cabinet includedin the partition in which each temperature regulating device is located;and triggering the facility management device to execute the temperatureregulation instruction set, where the temperature regulation instructionset is generated based on the temperature setting parameter. Atemperature setting parameter of a temperature regulating device isdetermined based on a power of a cabinet included in a partition inwhich the temperature regulating device is located, or this may beexpressed as that a temperature regulating device needs to meet atemperature requirement of a cabinet in a partition in which thetemperature regulating device is located. With reference to content inthe method for determining a temperature setting parameter of eachtemperature regulating device (step c1) described in the foregoingcontent, in this implementation, if the case in which the cabinetT_(i)>an air inlet temperature upper limit of the cabinet (where the airinlet temperature upper limit of the cabinet is W° C., for example, 28°C.) exists, the simulated temperature value of the temperatureregulating device of the partition in which the cabinet is located maybe decreased by the preset value (for example, 1° C.). Then, the airinlet temperature of each cabinet is obtained again based on thedecreased simulated temperature value. The foregoing process repeatsuntil each cabinet T_(i)≤the air inlet temperature upper limit of thecabinet. The corresponding simulated temperature value of eachtemperature regulating device is determined as the temperature settingparameter of each temperature regulating device when each cabinetT_(i)≤the air inlet temperature upper limit of the cabinet.

To implement functions in the method provided in embodiments of thisapplication, the energy-saving device may include a hardware structureand a software module, and implement the foregoing functions in a formof the hardware structure, the software module, or the hardwarestructure and the software module One of the foregoing functions may beperformed by using the hardware structure, the software module, or thecombination of the hardware structure and the software module.

FIG. 6 is a schematic diagram of a structure of an energy-saving deviceaccording to an embodiment of this application. The energy-saving deviceis configured to save power consumption of a machine room. The machineroom includes a plurality of cabinets and at least one temperatureregulating device. Each cabinet includes at least one server, eachserver is configured to provide a computing resource, and eachtemperature regulating device is configured to regulate a temperature ofthe machine room. The machine room is further provided with a facilitymanagement device, the facility management device is configured tomanage the computing resource and the temperature regulating device thatare of the machine room, and the energy-saving device 60 includes anobtaining unit 601 and a processing unit 602.

The obtaining unit 601 is configured to obtain cooling capacityconduction relationship information of the machine room and computingresource status information of the machine room. Specifically, for anoperation performed by the obtaining unit 601, refer to the descriptionsof step S101 in the method shown in FIG. 5 .

The processing unit 602 is configured to trigger, based on the coolingcapacity conduction relationship information and the computing resourcestatus information, the facility management device to execute acomputing resource management instruction set, so as to minimize a totalpower of the machine room while meeting a service requirement.Specifically, for an operation performed by the processing unit 602,refer to the descriptions of step S102 in the method shown in FIG. 5 .

The cooling capacity conduction relationship information is fordetermining a capability of each cabinet in the machine room to absorb acooling capacity of each temperature regulating device in the machineroom, and the computing resource status information is for determining arunning location and a running status that are of the computing resourceincluded in the machine room.

In some embodiments, the computing resource management instruction setis a computing resource adjustment instruction set, and the computingresource adjustment instruction set is for adjusting a running locationof at least one computing resource in the machine room.

In some embodiments, the processing unit is specifically configured to:determine a to-be-migrated computing resource in the machine room basedon the computing resource status information; determine a target serverfor the to-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, where a total power that is of the machine room and that isrequired after the to-be-migrated computing resource is migrated to thetarget server is less than a total power that is of the machine room andthat is required before the migration; and generate, as the computingresource adjustment instruction set, an instruction set for migratingthe to-be-migrated computing resource to the target server.

In some embodiments, the processing unit is specifically configured to:determine, for the to-be-migrated computing resource based on thecooling capacity conduction relationship information and the computingresource status information, a plurality of candidate servers and acandidate total power corresponding to each candidate server, where thecandidate total power is a total power that is of the machine room andthat is required if the to-be-migrated computing resource is migrated toeach candidate server; and select, from the plurality of candidateservers, a candidate server with a lowest corresponding candidate totalpower as the target server.

In some embodiments, the processing unit is further configured to:obtain a power that is of each of the plurality of cabinets and that isrequired if the computing resource adjustment instruction set isexecuted; determine a temperature setting parameter of each of the atleast one temperature regulating device based on the power of each ofthe plurality of cabinets, where the temperature setting parameter isfor meeting temperature requirements that are of the plurality ofcabinets and that are generated after the computing resource adjustmentinstruction set is executed; and trigger the facility management deviceto execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter.

In some embodiments, the computing resource management instruction setis a computing resource allocation instruction set, and the computingresource allocation instruction set is for allocating at least onecomputing resource in the machine room.

In some embodiments, the processing unit is specifically configured to:receive a service requirement, where the service requirement is forrequesting to run the computing resource in the machine room; determine,based on the service requirement, the cooling capacity conductionrelationship information, and the computing resource status information,a target computing resource that meets the service requirement and atarget server that provides the target computing resource, where anincrement between total powers that are of the machine room and that arerequired before and after the target server provides the targetcomputing resource is minimized; and generate, as the computing resourceallocation instruction set, an instruction set for allocating the targetcomputing resource by the target server.

In some embodiments, the processing unit is specifically configured to:determine, for the target computing resource based on the servicerequirement, the cooling capacity conduction relationship information,and the computing resource status information, a plurality of candidateservers and a candidate increment corresponding to each candidateserver, where the candidate increment is an increment of a total powerthat is of the machine room and that is required if the target computingresource is migrated to each candidate server; and select, from a set ofthe plurality of candidate servers, a candidate server with a lowestcorresponding candidate increment as the target server.

In some embodiments, the processing unit is further configured to:obtain a power that is of each of the plurality of cabinets and that isrequired if the computing resource allocation instruction set isexecuted; determine a temperature setting parameter of each of the atleast one temperature regulating device based on the power of each ofthe plurality of cabinets, where the temperature setting parameter isfor meeting temperature requirements that are of the plurality ofcabinets and that are required after the computing resource allocationinstruction set is executed; and trigger the facility management deviceto execute a temperature regulation instruction set, where thetemperature regulation instruction set is generated based on thetemperature setting parameter.

It can be noted that operations performed by the units of theenergy-saving device shown in FIG. 6 may be the related content in theforegoing method embodiments. Details are not described herein again.The foregoing units may be implemented by hardware, software, or acombination of software and hardware. For technical effects that can beachieved in each implementation, refer to the descriptions in theforegoing content. In an embodiment, functions of the obtaining unit 601and the processing unit 602 in the foregoing content may be implementedby one or more processors in the energy-saving device 60.

The energy-saving device shown in FIG. 6 may trigger, based on thecooling capacity conduction relationship information and the computingresource status information, the facility management device to execute acomputing resource management instruction set, so as to minimize a totalpower of the machine room while meeting a service requirement.

FIG. 7 is a schematic diagram of a structure of another energy-savingdevice according to an embodiment of this application. The energy-savingdevice 70 is configured to save power consumption of a machine room. Themachine room includes a plurality of cabinets and at least onetemperature regulating device. Each cabinet includes at least oneserver, each server is configured to provide a computing resource, andeach temperature regulating device is configured to regulate atemperature of the machine room. The machine room is further providedwith a facility management device. The facility management device isconfigured to manage the computing resource and the temperatureregulating device that are in the machine room. The energy-saving device70 may include one or more processors 701, one or more input devices702, one or more output devices 703, and a memory 704. The processor701, the input device 702, the output device 703, and the memory 704 areconnected via a bus 705. The memory 704 is configured to storeinstructions.

The processor 701 may be a central processing unit, or the processor maybe another general-purpose processor, a digital signal processor, anapplication-specific integrated circuit, another programmable logicdevice, or the like. The general-purpose processor may be amicroprocessor, or the processor may be any conventional processor orthe like.

The input device 702 may include a communication interface, a datacable, and the like, and the output device 703 may include a display(such as an LCD), a data cable, a communication interface, and the like.

The memory 704 may include a read-only memory and a random accessmemory, and provide instructions and data for the processor 701. A partof the memory 704 may further include a non-volatile random accessmemory. For example, the memory 704 may further store information abouta device type.

The processor 701 is configured to run the instructions stored in thememory 704 to perform the following operations:

-   -   obtaining cooling capacity conduction relationship information        of the machine room and computing resource status information of        the machine room; and triggering, based on the cooling capacity        conduction relationship information and the computing resource        status information, the facility management device to execute a        computing resource management instruction set, so as to minimize        a total power of the machine room while meeting a service        requirement.

The cooling capacity conduction relationship information is fordetermining a capability of each cabinet in the machine room to absorb acooling capacity of each temperature regulating device in the machineroom, and the computing resource status information is for determining arunning location and a running status that are of the computing resourceincluded in the machine room.

For the operations performed by the processor 701, refer to relatedcontent in the foregoing method embodiment. Details are not describedherein again.

The energy-saving device shown in FIG. 7 may trigger, based on thecooling capacity conduction relationship information and the computingresource status information, the facility management device to execute acomputing resource management instruction set, so as to minimize thetotal power of the machine room while meeting the service requirement.

A person skilled in the art may further understand that variousillustrative logical blocks (illustrative logic blocks) and steps(steps) that are listed in embodiments of this application may beimplemented by using electronic hardware, computer software, or acombination thereof. Whether the functions are implemented by usinghardware or software depends on particular applications and a designrequirement of an entire system. A person skilled in the art may usevarious methods to implement the described functions for each particularapplication, but it does not need to be considered that theimplementation goes beyond the scope of embodiments of this application.

This application further provides a computer-readable storage mediumstoring a computer program. When the computer-readable storage medium isexecuted by a computer, functions in any method embodiment areimplemented.

This application further provides a computer program product. When thecomputer program product is executed by a computer, functions in anymethod embodiment are implemented.

An embodiment of this application further provides a computing resourcesupply system. The computing resource supply system may include theenergy-saving device and the machine room in the embodimentcorresponding to FIG. 5 . For the energy-saving device and the machineroom, refer to the descriptions of any one of the foregoing methodembodiments.

All or some of the foregoing embodiments may be implemented throughsoftware, hardware, firmware, or any combination thereof. When thesoftware is used to implement embodiments, all or some of embodimentsmay be implemented in a form of a computer program product. The computerprogram product includes one or more computer instructions. When thecomputer instructions are loaded and executed on the computer, theprocedure or functions according to embodiments of this application areall or partially generated. The computer may be a general-purposecomputer, a dedicated computer, a computer network, or anotherprogrammable apparatus. The computer instructions may be stored in acomputer-readable storage medium or may be transmitted from acomputer-readable storage medium to another computer-readable storagemedium. For example, the computer instructions may be transmitted from awebsite, computer, server, or data center to another web site, computer,server, or data center in a wired (for example, a coaxial cable, anoptical fiber, or a digital subscriber line (digital subscriber line,DSL)) or wireless (for example, infrared, radio, or microwave) manner.The computer-readable storage medium may be any usable medium accessibleby the computer, or a data storage device, such as a server or a datacenter, integrating one or more usable media. The usable medium may be amagnetic medium (for example, a floppy disk, a hard disk, or a magnetictape), an optical medium (for example, a high-density digital video disc(digital video disc, DVD)), a semiconductor medium (for example, asolid-state drive (solid-state drive, SSD)), or the like.

A person of ordinary skill in the art may understand that variousnumerals such as “first” and “second” in this application are merelyused for differentiation for ease of description, and are not used tolimit the scope or a sequence of embodiments of this application.

The correspondences shown in the tables in this application may beconfigured, or may be predefined. Values of the information in thetables are merely examples, and other values may be configured. This isnot limited in this application. When a correspondence between theinformation and the parameters is configured, not all thecorrespondences shown in the tables need to be configured. For example,in the tables in this application, correspondences shown in some rowsmay alternatively not be configured. For another example, properdeformations and adjustments such as splitting and combination may beperformed based on the foregoing tables. Names of the parameters shownin titles of the foregoing tables may alternatively be other names thatcan be understood by a communication apparatus, and values orrepresentation manners of the parameters may alternatively be othervalues or representation manners that can be understood by thecommunication apparatus. During implementation of the foregoing tables,another data structure, such as an array, a queue, a container, a stack,a linear table, a pointer, a linked list, a tree, a graph, a structure,a class, a pile, a hash list, or a hash table, may alternatively beused.

“Predefine” in this application may be understood as “define”, “definein advance”, “store”, “pre-store”, “pre-negotiate”, “pre-configure”,“solidify”, or “pre-burn”.

A person of ordinary skill in the art may be aware that, in combinationwith the examples described in embodiments disclosed in thisspecification, units and algorithm steps may be implemented byelectronic hardware or a combination of computer software and electronichardware. Whether the functions are performed by hardware or softwaredepends on particular applications and design constraint conditions ofthe technical solutions. A person skilled in the art may use differentmethods to implement the described functions for each particularapplication, but it does not need to be considered that theimplementation goes beyond the scope of this application.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the foregoing system, apparatus, and unit, refer to acorresponding process in the foregoing method embodiment. Details arenot described herein again.

The foregoing descriptions are merely specific implementations of thisapplication, but the protection scope of this application is not limitedthereto. Any variation or replacement readily figured out by a personskilled in the art within the technical scope disclosed in thisapplication shall fall within the protection scope of this application.Therefore, the protection scope of this application shall be subject tothe protection scope of the claims.

1. An energy-saving method applied to a machine room, wherein themachine room comprises a plurality of cabinets and at least onetemperature regulating device, each cabinet comprises at least oneserver, each server is configured to provide a computing resource, andeach temperature regulating device is configured to regulate atemperature of the machine room; the machine room is further providedwith a facility management device, and the facility management device isconfigured to manage the computing resource and the temperatureregulating device that are of the machine room; and the methodcomprises: obtaining cooling capacity conduction relationshipinformation of the machine room and computing resource statusinformation of the machine room; and triggering, based on the coolingcapacity conduction relationship information and the computing resourcestatus information, the facility management device to execute acomputing resource management instruction set to minimize a total powerof the machine room while meeting a service requirement, wherein thecooling capacity conduction relationship information is for determininga capability of each cabinet in the machine room to absorb a coolingcapacity of each temperature regulating device in the machine room, andthe computing resource status information is for determining a runninglocation and a running status that are of the computing resourcecomprised in the machine room.
 2. The method according to claim 1,wherein the computing resource management instruction set is a computingresource adjustment instruction set, and the computing resourceadjustment instruction set is for adjusting a running location of atleast one computing resource in the machine room.
 3. The methodaccording to claim 2, wherein the triggering, based on the coolingcapacity conduction relationship information and the computing resourcestatus information, the facility management device to execute acomputing resource management instruction set comprises: determining ato-be-migrated computing resource in the machine room based on thecomputing resource status information; determining a target server forthe to-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, wherein a total power that is of the machine room and thatis required after the to-be-migrated computing resource is migrated tothe target server is less than a total power that is of the machine roomand that is required before the to-be-migrated computing resource ismigrated to the target server; and generating, as the computing resourceadjustment instruction set, an instruction set for migrating theto-be-migrated computing resource to the target server.
 4. The methodaccording to claim 3, wherein the determining a target server for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation comprises: determining, for the to-be-migrated computingresource based on the cooling capacity conduction relationshipinformation and the computing resource status information, a pluralityof candidate servers and a candidate total power corresponding to eachcandidate server, wherein the candidate total power is a total powerthat is of the machine room and that is required if the to-be-migratedcomputing resource is migrated to each candidate server; and selecting,from the plurality of candidate servers, a candidate server with alowest corresponding candidate total power as the target server.
 5. Themethod according to claim 4, wherein the determining, for theto-be-migrated computing resource based on the cooling capacityconduction relationship information and the computing resource statusinformation, a plurality of candidate servers and a candidate totalpower corresponding to each candidate server comprises: determiningpartition cooling capacity absorption relationship information andcooling capacity sharing relationship information based on the coolingcapacity conduction relationship information; determining ato-be-selected partition combination set based on the partition coolingcapacity absorption relationship information and the cooling capacitysharing relationship information; and determining the plurality ofcandidate servers and the candidate total power corresponding to eachcandidate server for the to-be-migrated computing resource based on thecooling capacity conduction relationship information, the to-be-selectedpartition combination set, and the computing resource statusinformation, wherein the plurality of candidate servers belong to theto-be-selected partition combination set, and wherein: the partitioncooling capacity absorption relationship information indicates acapability of a cabinet in each partition in the machine room to absorba cooling capacity of a temperature regulating device in the partition,and one partition comprises one temperature regulating device and atleast one cabinet; the cooling capacity sharing relationship informationindicates a capability of a cabinet in one partition to share a coolingcapacity of a temperature regulating device in the other partitionbetween every two partitions in the machine room; and the to-be-selectedpartition combination set comprises a plurality of to-be-selectedpartition combinations having different partition quantities, whereinone to-be-selected partition combination is a partition combinationhaving a strongest cooling capacity absorption capability and astrongest cooling capacity sharing capability in one or more partitioncombinations having a same partition quantity.
 6. The method accordingto claim 5, wherein the determining the plurality of candidate serversfor the to-be-migrated computing resource based on the cooling capacityconduction relationship information, the to-be-selected partitioncombination set, and the computing resource status informationcomprises: determining, for the to-be-migrated computing resource basedon the computing resource status information, an alternate server ineach cabinet in each to-be-selected partition combination in theto-be-selected partition combination set, wherein a first powervariation is not greater than a second power variation, the first powervariation is a power variation that is of the alternate server and thatis required if the to-be-migrated computing resource is migrated to thealternate server, and the second power variation is a power variationthat is of a server other than the alternate server in a same cabinetand that is required if the to-be-migrated computing resource ismigrated to the server other than the alternate server; determining,based on the computing resource status information and the coolingcapacity conduction relationship information, a power balance degreecorresponding to each cabinet, wherein the power balance degree is apower balance degree that is of the to-be-selected partition combinationto which each cabinet belongs and that is required if the to-be-migratedcomputing resource is migrated to the alternate server in each cabinet;and using an alternate server in a cabinet with a minimum correspondingpower balance degree in each to-be-selected partition combination toform the plurality of candidate servers.
 7. The method according toclaim 3, wherein the determining a target server for the to-be-migratedcomputing resource based on the cooling capacity conduction relationshipinformation and the computing resource status information comprises:determining an alternate server in each cabinet in the machine room forthe to-be-migrated computing resource based on the computing resourcestatus information, wherein a first power variation is not greater thana second power variation, the first power variation is a power variationthat is of the alternate server and that is required if theto-be-migrated computing resource is migrated to the alternate server,and the second power variation is a power variation that is of a serverother than the alternate server in a same cabinet and that is requiredif the to-be-migrated computing resource is migrated to the server otherthan the alternate server; determining, based on the computing resourcestatus information and the cooling capacity conduction relationshipinformation, a power balance degree corresponding to each cabinet,wherein the power balance degree is a power balance degree that is ofthe machine room and that is required if the to-be-migrated computingresource is migrated to the alternate server in each cabinet; andselecting, as the target server, an alternate server in a cabinet with aminimum corresponding power balance degree in the plurality of cabinets.8. The method according to claim 2, wherein the method furthercomprises: calculating a power that is of each of the plurality ofcabinets and that is required if the computing resource adjustmentinstruction set is executed; determining a temperature setting parameterof each of the at least one temperature regulating device based on thepower of each of the plurality of cabinets, wherein the temperaturesetting parameter is for meeting temperature requirements that are ofthe plurality of cabinets and that are generated after the computingresource adjustment instruction set is executed; and triggering thefacility management device to execute a temperature regulationinstruction set, wherein the temperature regulation instruction set isgenerated based on the temperature setting parameter.
 9. The methodaccording to claim 5, wherein the method further comprises: calculatinga power that is of each of the plurality of cabinets and that isrequired if the computing resource adjustment instruction set isexecuted; determining a temperature setting parameter of eachtemperature regulating device based on a power of a cabinet comprised ina partition in which each temperature regulating device is located; andtriggering the facility management device to execute a temperatureregulation instruction set, wherein the temperature regulationinstruction set is generated based on the temperature setting parameter.10. The method according to claim 1, wherein the computing resourcemanagement instruction set is a computing resource allocationinstruction set, and the computing resource allocation instruction setis for allocating at least one computing resource in the machine room.11. The method according to claim 10, wherein the triggering, based onthe cooling capacity conduction relationship information and thecomputing resource status information, the facility management device toexecute a computing resource management instruction set comprises:receiving a service requirement, wherein the service requirement is forrequesting to run the computing resource in the machine room;determining, based on the service requirement, the cooling capacityconduction relationship information, and the computing resource statusinformation, a target computing resource that meets the servicerequirement and a target server that provides the target computingresource, wherein an increment between total powers that are of themachine room and that are required before and after the target serverprovides the target computing resource is minimized; and generating, asthe computing resource allocation instruction set, an instruction setfor allocating the target computing resource by the target server. 12.The method according to claim 11, wherein the determining, based on theservice requirement, the cooling capacity conduction relationshipinformation, and the computing resource status information, a targetcomputing resource that meets the service requirement and a targetserver that provides the target computing resource comprises:determining, for the target computing resource based on the servicerequirement, the cooling capacity conduction relationship information,and the computing resource status information, a plurality of candidateservers and a candidate increment corresponding to each candidateserver, wherein the candidate increment is an increment of a total powerthat is of the machine room and that is required if the target computingresource is migrated to each candidate server; and selecting, from theplurality of candidate servers, a candidate server with a lowestcorresponding candidate increment as the target server.
 13. The methodaccording to claim 11, wherein the triggering, based on the coolingcapacity conduction relationship information and the computing resourcestatus information, the facility management device to execute acomputing resource management instruction set comprises: determining,for the target computing resource based on the computing resource statusinformation, an alternate server in each cabinet in the machine room,wherein the alternate server has a capability of providing the targetcomputing resource, and a third power variation is not greater than afourth power variation, wherein the third power variation is a powervariation that is of the alternate server and that is required if thetarget computing resource is migrated to the alternate server, and thefourth power variation is a power variation that is of a server otherthan the alternate server in a same cabinet and that is required if thetarget computing resource is migrated to the server other than thealternate server; determining, based on the computing resource statusinformation and the cooling capacity conduction relationshipinformation, a power balance degree corresponding to each cabinet,wherein the power balance degree is a power balance degree that is ofthe machine room and that is required if the target computing resourceis migrated to the alternate server in each cabinet; and selecting, asthe target server, an alternate server in a cabinet with a minimumcorresponding power balance degree in the plurality of cabinets.
 14. Themethod according to claim 11, wherein the method further comprises:calculating a power that is of each of the plurality of cabinets andthat is required if the computing resource allocation instruction set isexecuted; determining a temperature setting parameter of each of the atleast one temperature regulating device based on the power of each ofthe plurality of cabinets, wherein the temperature setting parameter isfor meeting temperature requirements that are of the plurality ofcabinets and that are required after the computing resource allocationinstruction set is executed; and triggering the facility managementdevice to execute a temperature regulation instruction set, wherein thetemperature regulation instruction set is generated based on thetemperature setting parameter.
 15. The method according to claim 13,wherein the method further comprises: calculating a power that is ofeach of the plurality of cabinets and that is required if the computingresource allocation instruction set is executed; determining atemperature setting parameter of each temperature regulating devicebased on a power of a cabinet comprised in a partition in which eachtemperature regulating device is located; and triggering the facilitymanagement device to execute a temperature regulation instruction set,wherein the temperature regulation instruction set is generated based onthe temperature setting parameter.
 16. The method according to claim 3,wherein the total power of the machine room comprises a calculationpower of the plurality of cabinets and a temperature control power ofthe at least one temperature regulating device.
 17. The method accordingto claim 1, wherein a first cabinet is comprised in the plurality ofcabinets, a first temperature regulating device is comprised in the atleast one temperature regulating device, and the method furthercomprises: determining cooling capacity conduction relationshipinformation between the first cabinet and the first temperatureregulating device based on a first temperature, a second temperature, afirst air inlet temperature, and a second air inlet temperature,wherein: the first air inlet temperature is an air inlet temperaturethat is of the first cabinet and that is obtained by simulating runningof the machine room based on a first setting model, the first settingmodel is constructed based on the machine room, and the first settingmodel comprises the plurality of cabinets of a first power and the atleast one temperature regulating device of the first temperature; andthe second air inlet temperature is an air inlet temperature that is ofthe first cabinet and that is obtained by simulating running of themachine room based on a second setting model, the second setting modelis constructed based on the machine room, and the second setting modelcomprises the plurality of cabinets of the first power, the firsttemperature regulating device of the second temperature, and atemperature regulating device other than the first temperatureregulating device in the at least one temperature regulating device ofthe first temperature.
 18. The method according to claim 5, wherein themachine room comprises a first partition, the first partition comprisesa second temperature regulating device and at least one second cabinet,and the method further comprises: determining partition cooling capacityabsorption relationship information of the first partition based on acapability of each of the at least one second cabinet to absorb acooling capacity of the second temperature regulating device.
 19. Themethod according to claim 5, wherein the machine room comprises a firstpartition and a second partition, the first partition comprises a secondtemperature regulating device and at least one second cabinet, and thesecond partition comprises a third temperature regulating device and atleast one third cabinet; and the method further comprises: determiningcooling capacity sharing relationship information between the firstpartition and the second partition based on a capability of each of theat least one second cabinet to absorb a cooling capacity of the thirdtemperature regulating device and a capability of each of the at leastone third cabinet to absorb a cooling capacity of the second temperatureregulating device.
 20. The method according to claim 5, wherein: themachine room comprises a first partition, and the first partitioncomprises a second temperature regulating device and at least one secondcabinet; and a capability of each second cabinet to absorb a coolingcapacity of the second temperature regulatin device is stronger than acapability of each second cabinet to absorb a cooling capacity of atemperature regulating device other than the second temperatureregulating device in the at least one temperature regulating device.